KB and KC are kinetic energies of the ball at A