The ratio of masses $=1: 3$
Therefore, $m_{1}=x kg,\, m_{2}=3 x\, kg$
Applying law of conservation of momentum
$m_{1} v_{1}+m_{2} v_{2}=0$
$\Rightarrow x \times v_{1}+3 x \times 4=0$
$\Rightarrow v_{1}=-12\, m / s$
Therefore, velocity of lighter mass is opposite to that of heavier mass.