The energy of the system is E=5.5 J. This energy is the same at every moment of the oscillation. When the stretch x of the spring is maximum (so, when the stretch is equal to the amplitude: x=A) the velocity of the spring is zero, so all this energy is just elastic potential energy of the spring:

From which we find
