Question

A box is on horizontal frictionless table and connected to the wall with a spring with spring constant k=2N/m. A bullet hits the box with velocity v=10m/s and gets stuck in it. The box has mass M=10 kg and the bullet has mass m=10g. a) With what velocity V=? does the box start moving. b) what is the maximum compressive d=? of the spring? c) How long T=? does it take for the box to go back where it started moving?