The block A and B of masses m and 3 m are connected by an ideal spring of force constant K. Now both the blocks are given impluse in direction so that they started moving with velocities v0 and 3 v0 as shown in the figure. Find the maximum stretch of spring.

