Two similar bogies $A$ and $B$ of same mass $M$ (empty bogie) move with constant velocities $v_A$ and $v_B$ towards each other on smooth parallel tracks. At an instant a boy of mass $m$ from bogie $A$ and a boy of same mass from bogie $B$ exchange their positioin by jumping in a direction normal to the track, then bogie $A$ stops while $B$ keeps moving in the same direction with new velocity $v_g$. The initial velocities of bogie $A$ and $B$ are given by
(a) $\frac{M-m}{m} v_B, \frac{M-m}{M} v_B$
(b) $\frac{m v_B}{(M-m)}, \frac{M v_B}{(M-m)}$
(c) $\frac{m v_B}{(M+m)}, \frac{M v_B}{(M+m)}$
(d) $\frac{(M-m) v_B}{m}, \frac{(M-m) v_B}{M}$