A bullet of mass ‘m’ is fired with a velocity ‘v’ into a block of wood of mass ‘M’ suspended by a thread. If the bullet gets embedded in the block it rises to a height of
Conserving the linear momentum just before and after the strike
Now, again from conservation of energy