The correct option is A 12g(mvM+m)2
Let V be the velocity of the block with the bullet embedded in it at the time of impact. Then from the principle of conservation of momentum, we have
Mv = (M + m)V
or V=mv(M+m) (i)
If the block, with the bullet embedded in it, rises to a vertical height h, then from the principle of conservation of energy, we have
12(M+m)V2=(M+m)gh
or V=√2gh (ii)
Using (ii) in (i), we get
√2gh=mv(M+m)
Squaring this equation, we find that h is given correctly by choice (a).