(a) At position A, pendulum has maximum kinetic energy and its potential energy is zero at its resting position. Hence, K=mgh and U= 0.
(b) At B, kinetic energy decreases and potential energy increases. Hence, K= 0 and U=mgh
(c) At C also, kinetic energy K= 0 and potential energy U=mgh.