Math Problem Statement

A boy traveled by train which moved at the speed of 30 mph. He then boarded a bus that moved at the speed of 40 mph and reached his destination. The entire distance covered was 100 miles and the entire duration of the journey was 3 hours. Find the distance he traveled by bus.

Solution