The distance s1 the first train travels in time t1 is 45t1. The second train travels distance s2=105t2 in time t2.
Because the second train leaves 4 hours later than the first, t1-t2=4, so t2=t1-4 if we measure time with reference to t1. Therefore s2=105(t1-4). When the second train catches up with the first, they are at the same distance (s) from their starting points at the same time (t), so:
45t=105(t-4), 3t=7(t-4) when we divide each side by 15, 3t=7t-28, 4t=28, t=7hr and s=45t=315 miles.
This is graphically represented below where the path of the first train is shown in red and the second in blue. Distance (miles) is measured on the vertical axis and time (hours) on the horizontal axis. The graph shows that the first train has already travelled 180 miles when the second train starts off. The tracks intersect at (7,315), that is, at 7 hours and 315 miles (each distance subdivision is 10 miles).
