Here $m_{1}=m$
$m_{2}=2 m$
$v_{1}=v$
$v_{2}=0$
Let the speed of the system after collison $=v$
Using the principle of conservation of linear momentum
$m_{1} v_{1}+m_{2} v_{2}=\left(m_{1}+m_{2}\right) v'$
$\Rightarrow v'=\frac{m v+2 m \times 0}{m+2 m}=\frac{m v}{3 m}=\frac{v}{3}$