Let "t" be the time after second train started.
The we have for distances from the starting point
First train : x(t) = 40 + 40*t
Second train : y(t) = 60*t
The distance between the trains is z(t) = =
The rate of separating, which the problem is asking about, is
=
Now substitute t= 2 hours into the last formula and calculate
= = = 70.711 km/h. ANSWER