Two identical balls A and B of mass m kg are attached to two identical massless springs. The spring mass system is constrained to move inside a rigid pipe bent in the form of a circle as shown in figure. The pipe is fixed in a horizontal plane. The centres of the balls can move in a circle of radius R metre. Each spring has a natural length of Rπ metre and spring constant K. Initially, both the balls are displaced by an angle θ radian with respect to diameter PQ of the circles and released from rest. The speed of ball A when A and B are at the two ends of diameter PQ is