How would you do this? The K is 25.0 N/M

The spring's max amount of elastic potential energy?

Energy = 1/2 k x^2

You will have to know the max deflection available to get max stored energy.