A 1 kg mass is attached to a spring with a spring constant of 400 N/m. The mass is stretched 30 cm from its equilibrium position of x=0 and released. It will have its highest velocity when it passes through the equilibrium position at x=0. The kinetic energy of the mass is zero when it reaches the extremes of its oscillation at x=-30 cm and x=30 cm. The potential energy stored in the stretched spring is also a contribution to the total energy of the system along with the kinetic energy of the mass.