A bus traveled 40 miles during the second hour of a trip. This was 1/3 more than the distance traveled during the first hour. In the third hour the bus traveled a distance that was 1/4 more than in the second hour. What was the total distance that the bus traveled in 3 hours