Two blocks 1 and 2 of masses $m$ and $2 m$ respectively are connected by a spring of force constant $k$. The masses are moving to the right with uniform velocity $v$ cach, the heavicr mass, leading the lighter one. 'lhe spring is of natural length in the motion. Block 2 collides head on with a third block 3 of mass $m$, at rest, the collision being completely inclastic. Determine the velocity of blocks at the instant of maximum compression of the spring.