If a right triangle has legs of length a and b, and its hypotenuse is c, which of the following expressions is equivalent to c?
a+b
a2+b2
a2+b2
(a+b)2