A plane made a trip to Miami and back. It flew 400mph on the way there and flew 450mph on the return trip. How long did the trip to Miami take if the return trip took 10 hours?