Two balls are fastened to two light strings of same length of l and of different masses m and 2m as shown in the figure. The other end of the strings are fixed at O. The strings are kept in the same horizontal line and the system is released from rest. The collision between the balls is perfectly elastic. Find the ratio of the speeds of the balls, just after the collision.