Two trains Q and P are moving along parallel tracks with same uniform speed of 20 m/s .The driver of train Q decides to overtake train P and accelerates his train by 1 m/s2. After 50 s, train Q crosses the engine of train P. Given the length of each train is 400 m, the initial distance between the two trains was