If vA and vB are the velocity of the two bodies moving along the same direction with respect to the ground, relative velocity of A with respect to B is given by,
VAB = VA – VB …………. (1)
Here, the velocity of the man with respect to the train,
vAB = 5ms-1
velocity of the train with respect to the ground is,
vB = 30 ms-1
∴ velocity of the man with respect to the ground,
vA = vB + vAB = 30 + 5 = 35 ms-1 if the man moves southwards.
On the other hand, if the man moves northwards,
vAB = – 5 ms-1
∴ VA = VB – VAB
= 25 ms-1