The block of mass M moving on the frictionless horizontal surface collides with the spring constant k and compresses it by length L . The maximum momentum of the block after collision is