Velocity of train A,
Velocity of train B,
Acceleration of train A,
Acceleration of train B,
Let initially A be ahead of B by a distance d. Let SB and SA be the distances travelled by trains B and A respectively in 50s.
As at t = 50 s the position of both the trains is same.
∴ original distance between them is,