TWo trains P and Q of length 400 m each are moving on two parallel tracks with a uniform speed of 72 km in the same direction

TWo trains P and Q of length 400 m each are moving on two parallel tracks with a uniform speed of 72 km in the same direction, with P ahead of Q. The driver of Q decides to overtake P and accelerates by 1 m If after 50 s, the guard of Q just brushes past the driver of P, what was the original distance between them ?