In the same direction, time taken = 60 seconds, speed = 6m/s

(This is t1-t2, where t1 is speed of the faster train and t2 is the speed of the slower train).

In opposite direction, time taken = 10 seconds, speed = 36m/s

(This is t1+t2)

Solving the two equations, t1=21 m/s and t2=15m/s ]]>

(My advice: don't type while answering)

]]>**Time given to solve the problem = 60 seconds**