Two bodies A and B of masses m and 2m respectively placed on a smooth floor are connected by a spring. A third body C of mass m moves with velocity v0 along the line joining A and B and collides elastically with A. At a certain instant of time t0 after collision it is found that the instantaneous velocities of A and B are same. The compression in the spring at t0 is x0, then: