Mr. Granger, a cyclist, rode from his home to his office at an average speed of 18 miles per. On his return home from his office, using the same route, he averaged 12 miles per hour. If the total trip took 5 hours, what was the distance from his home to his office?