Where A and B could be either of the 2 legs and C always have to be the hypotenuse of the right triangle. Hypotenuse is the longest leg of the triangle is the leg that's opposite to the right angle of the right triangle.
Hope this helps! I have attached a diagram for u to help you understand: