As a pendulum swings from its highest to its lowest position along an arc, what happens to its kinetic energy and potential energy?