Physics Class 11 Chapter 6. Work, Energy and Power | Page 11
Example: A car of mass M travelling with speed v, collides with a spring, having spring constant k. The car comes to rest( momentarily) when spring is compressed to a distance of xm. Find xm