A man is going on a road trip at an average speed of 60 miles per hour. In the middle of the trip, he stopped to eat a cheeseburger for 10 minutes. When he finished, he drove at an average speed of 50 miles per hour, because he also had a beer with the cheeseburger. The police found out he was drinking, and he was stopped for 10 minutes at 3/4 of the way on his trip. For the last 1/4 of the trip, he drove at an average of 45 miles per hour. Assuming the guy took 2060 minutes to finish the trip, how long was the trip in total?