Let's denote the speed of the first train as v mph.
The first train travels for a total of 2 hours before the second train starts. Therefore, the distance traveled by the first train is given by:
Distance = Speed × Time Distance = v mph × 2 hours Distance = 2v miles
The second train catches up with the first train in 4 hours. In this time, the second train covers the same distance as the first train. So, the distance covered by the second train is:
Distance = Speed × Time Distance = 60 mph × 4 hours Distance = 240 miles
Since both trains cover the same distance, we can set up the equation:
2v = 240
Solving for v:
v = 240 / 2 v = 120
Therefore, the speed of the first train is 120 mph.