A block of mass M, at rest on a horizontal frictionless table, is attached to a rigid support by a spring of constant k. A bullet of mass m and velocity v strikes the block. The bullet is embedded in the block. Determine the speed of the block immediately after the collision and the amplitude of the resulting simple harmonic motion.