Which equation can be used to find x, the length of the hypotenuse of the right triangle?

A triangle has side lengths 18, 24, x.
18 + 24 = x
18 squared + 24 = x
(18 + 24) squared = x squared
18 squared + 24 squared = x squared