A bullet of mass m, flying with speed v, hits a body of mass M, connected to
the wall by a spring of stiffness k, and gets stuck in it. Choosing the moment
of hitting the bullet as the origin of time, find the dependence of velocity and
coordinate of the body on time.