At the mean position, the energy is entirely kinetic energy. At the extreme position, the energy is entirely potential energy.