The journey from Fred’s home to his caravan is a total distance of 150 km. Fred is travelling to his caravan this weekend. He expects to be able to travel at an average speed of 90 km/h, but has decided to visit a friend who lives along his route at a point 90 km from Fred’s house. He needs to arrive at the caravan by 21:00 and will leave home at 17:00.
What is the longest amount of time that he can spend visiting his friend?