Assume the length of train be L1 and L2. Velocity of passenger train be vp and of goods train be vg. Relative velocity while travelling in same direction =vp–vg Relative velocity while travelling in opposite direction =vp+vg According to the question