A is one leg of the triangle while B is the other leg(order does not matter). C is the hypotenuse also known as the diagonal. A squared + B squared is equal to C squared.