find the legth of the third side of the right triangle if a=2in and b=6in I think it is 10 but not sure if I did it right

If the third side is the hypotenuse c , then

c^2 = a^2 + b^2
= 4+36
= 40
c = √40
= appr. 6.32