The conservation of mechanical energy tells me that the kinetic energy at A plus the potential energy at A must be the kinetic energy at B plus the potential energy at B, and that must be equal to the kinetic energy at C plus the potential energy at C. 