A box on a frictionless surface is pulled back a distance x into a spring with spring constant k and released. What is the formula for the kinetic energy of the box after it leaves the spring?

K.E. = (1/2) M V^2 = (1/2)k x^2