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.