Consider the situation shown in figure (8-E8). Initially the spring is unstretched when the system is released form rest. Assuming no friction in the pulley, find the maximum elongation of the spring.
Mass of the body =m
Let the elongation be x
So, 12kx2=mgx
⇒x=2mg/k