Dear student
A bullet of mass m moving with a velocity u strikes a block of mass M at rest
Apply conservation of momentum on Block + Mass system before and after collision to find the final speed of Block+Mass
Total initial momentum = mu+M(0)= mu
let final speed of Block + Mass system be V........( since one gets embedded in other, both will have same speed).
Final momentum = (m+M)V
So, mu=(m+M)V
or,
Hence the answer.
Regards