A coordinate axis system taking x-axis as horizontal smooth floor is shown in figure. Two small balls of masses m and 3m attached with a string are released from some heights on y-axis as shown in figure. The balls may collide head on or obliquely. After a certain time mass m is at (9cm,20cm) while mass 3m is 25cm above the x axis and the strings is taut. The balls always remain in x-y plane. Find the length of string.