Ariana took 2 h longer to drive 360 mi on the first day of a trip than she took to drive 270 mi on the second day. If her speed was the same on both days, what was the driving time each day?

Ariana took 2 h longer to drive 360 mi on the first day of a trip than she took to drive 270 mi on the second day. If her speed was the same on both days, what was the driving time each day?