Lets suppose we have a right triangle:
where the longest side is opposite of the right angle. (10 in our case).
Since we have a right triangle, Pythagorean theorem must be fulfilled:
Which gives
Since the left and right sides are equal, the given triangle is a right triangle.