Potential energy+Kinetic energy=Total energy
When you release a spring the velocity increases, therefore the kinetic energy increases ke=1/2*mv^2 and the displacement decreases therefore the potential energy decreases pe=1/2*kx^2.
5.2m questions
6.8m answers