In an inelastic collision, only momentum is conserved, while energy is not conserved.
1) Velocity of the nail and the block after the collision
This can be found by using the total momentum after the collisions:
where
m=0.1 kg is the mass of the nail
M=10 kg is the mass of the block of wood
Rearranging the formula, we find
, the velocity of the nail and the block after the collision:
2) The velocity of the nail before the collision can be found by using the conservation of momentum. In fact, the total momentum before the collision is given only by the nail (since the block is at rest), and it must be equal to the total momentum after the collision:
Rearranging the formula, we can find
, the velocity of the nail before the collision: