A sphere of mass m, attached at its center to a spring on incline as shown in figure, is held in unstretched position of spring. Suddenly the sphere is set free, the maximum extension of spring is (friction is enough to prevent slipping)
Maximum elongation = mg sin θ.x by conservation of energy