Two blocks of masses m and M are moving with speeds v1 and v2 (v1>v2) in the same direction on the frictionless surface respectively, Mbeing ahead of m. An ideal spring of force constant k is attached to the backside of M (as shown). The maximum compression of the spring when the blocks collide is