On a frictionless horizontal surface, a 1.50 kg mass travelingat 3.50 m/s collides with and sticks to a 3.00 kg mass that isinitially at rest. This system then runs into an ideal spring offorce constant 50.0 N/m. What will be the maximum compression ofthe spring? How much mechanical energy is lost during this process?During which parts of the process (the collision and compression ofthe spring) is this energy lost?