a block of mass m1 = 2kg slides along a frictionless table with a speed of 10m/s. Directly in front of it, and moving in the same direction is a block of mass m2 = 5kg moving at 3.0m/s. A massless spring with a spring constant of k = 1120N/m is attached to the near side of m2. When the blocks collide what is the max compression of the spring? Ok, this would be treated as a totally inelastic collision because at the point of max compression, the two masses will be moving together as one, right? my question is how do I incorporate the spring constant into the forumlas?