A right triangle has sides of length 3, 4, and x .Find x if it is the hypotenuse

Work Shown:
a = 3 and b = 4 are the two legs
c = x is the unknown hypotenuse
Use the pythagorean theorem to solve for c
a^2 + b^2 = c^2
3^2 + 4^2 = c^2
9 + 16 = c^2
25 = c^2
c^2 = 25
c = sqrt(25)
c = 5