Use the base and the height of the right triangle in place of a and b.
c will be your answer (the hypotenuse)
sqrt(a^2+b^2)=sqrt(c^2)
sqrt(a^2+b^2)=c
Note that you CANNOT use a+b=c. That is not the pythagorean theorem. That is adding 3 different variables.