A small cart of mass 2 kg is at rest on a frictionless horizontal surface. It is connected to a spring with a spring constant of 300 N/m. When a force of 60 N is applied to the cart, it accelerates for a distance of 2 m before the force is removed. The spring is compressed during this acceleration and returns to its uncompressed state after the force is removed. Determine the maximum compression of the spring during the acceleration.