Daniel B. answered 01/05/21
A retired computer professional to teach math, physics
Let g be gravitational acceleration.
After the collision, the block with the bullet imbedded has weight (m+M)g,
and the force of friction is then (m+M)gμ = (m+M)gμ0x.
The initial kinetic energy, mv0²/2, of the bullet gets converted to the work of friction, which is
∫ [0, d] (m+M)gμ0xdx = (m+M)gμ0d²/2
By conservation of energy:
mv0²/2 = (m+M)gμ0d²/2
d = v0√(m/((m+M)gμ0)))
You might notice that the units appear to be wrong;
the units of the result should be 'length', i.e., m, but are
m/s √(s²/m) = √(m)
The reason for the discrepancy is that the coefficient of friction,
which is a dimension-less quantity is given to us as if it had dimension of length.
So the numerical result we got for d is actually in m, units of length.