This formula is extremely essential especially later on. Note that this formula only applies to right triangles. The formula is
a^2+b^2=c^2
A and B being the two legs.
C being the hypotenuse of the triangle.
The hypotenuse (c) is the side opposite the largest angle in the triangle. In this case for a right triangle, the hypotenuse will always be opposite of the right angle.