In the figure shown, initially the spring is in relaxed position. A bullet of mass
m hits the block
A with horizontal speed
v0 and gets embedded into it. Find the maximum compression in the spring. Stiffness of the spring is
K. Neglect any friction and deformation in the spring during collision.