Ted made a trip to his friends house and back. On the trip there he traveled 25 km/h and on the return trip he went 20 km/h. How long did the trip there take if the return trip took five hours?