The boy traveled 60 miles by train and 40 miles by bus, covering the entire 100-mile journey in 3 hours.
Let's denote the distance traveled by the train as x miles. Since the entire distance covered is 100 miles, the distance traveled by the bus would be 100−x miles.
Now, let's use the formula:

The time taken by the train is
hours, and the time taken by the bus is
hours.
The total time for the journey is given as 3 hours:

To solve this equation, let's find a common denominator and then solve for

So, the distance traveled by the bus is
. Therefore, the boy traveled 40 miles by bus