Use the Pythagorean theorem for the right triangle \(ABC,\) where
\(AB\) is the hypotenuse of the triangle;
\(AC\) and \(BC\) are the other two sides.
So,
\((AC)^{2}+(BC)^{2}=(AB)^{2}\\\\ 7^{2}+10^{2}=(AB)^{2}\\\\ (AB)^{2}=49+100\\\\ (AB)^{2}=149\\\\ AB=\sqrt{149}\)