In order to watch this solution you need to have a subscription.
The total kinetic, and potential energy of this system with this spring being compressed a distance 'x' naught, is kinetic energy plus potential energy, is one half 'mv' squared, whatever it's speed happens to be at a certain position, plus one half 'kx' squared. So that's the elastic potential energy here, and the kinetic energy there. And this total will be, one half 'kx' knot squared, where 'x' knot is the initial starting compression position. More could have been stretched too, for that matter and it would be the same.
You are wonderful! This has been such a help-I actually enjoy physics because of your explanations-thank you so much :)