(c) Initial linear momentum of system $= m_{A}{\overrightarrow{v}}_{A} + m_{B}{\overrightarrow{v}}_{B}$
$= 0.2 \times 0.3 + 0.4 \times v_{B}$
Finally both balls come to rest
$\therefore$ final linear momentum $= 0$
By the law of conservation of linear momentum
$0.2 \times 0.3 + 0.4 \times v_{B} = 0$
$\therefore v_{B} = - \frac{0.2 \times 0.3}{0.4} = - 0.15\ m/s$