We know that a right triangle satisfies the pythagorean theorem:
where a and b are the legs (the two smaller sides) and c is the hypotenuse.
To determine if the sides form a right triangle we plug the values into the pythagorean theorem, if the equation holds then the sides form a right triangle:
Since the equation holds we conclude that the sides given form a right triangle.