A spring has a force constant of 50 N/m. The spring is compressed by 0.4 m. How much energy has the spring stored?

PE= 1/2 k x^2