Passenger
r = 96 km/hr
t = t - 2
Freight
r = 64
t = t You have to solve for t before you can solve for d
The distance is the same for both trains.
Formula
r_passenger_train * time_passenger = r_freight_train * time_freight
Solve
96 km/hr * (t - 2) = 64*t the easiest way to go on is to divide by 96
(t - 2) = 64t/96
t - 2 = 0.667t Subtract 0.667t from both sides.
t - 0.667t - 2 = 0 Add 2 to both sides. combine the two times
0.333t = 2 Divide by 0.333
t = 2/0.333 = 6 hours
Answer
Now solve for the distance.
d_ passenger = r_passenger * t_passenger
d_passenger = ???
r_ passenger = 96
t = 6 - 2 = 4 hours.
d = 96 * 4
d = 384 km.