From energy conservation,
[after bullet gets embedded till the system comes momentarily at rest]
(M+m)gh=21(M+m)v12
[v1 is velocity after collision]
∴v1=2σh
Applying momentum conservation, (just before and just after collision)
mv=(M+m)v1
v=(mM+m)v1=10×10−36×2×9.8×9.8×10−2
≈831.55ms−1