Explanation:
At every point in the motion of the pendulum the total mechanical energy is conserved. The sum of the gravitational potential energy and the kinetic energy, at each point of the motion, is a constant, which is the total mechanical energy.