One end of a light spring of natural length d and spring constant k is fixed on a rigid wall and the other is attached to a smooth ring of mass m which can slide without friction on a vertical rod fixed at a distance d from the wall. Initially the spring makes an angle of 37∘with the horizontal as shown in figure. When the system is released from rest, find the speed of the ring when the spring becomes horizontal.