These values can make a right triangle.
Here's how: if the two legs have a length of [tex] \sqrt{2} [/tex], and the hypotenuse is 2, the math checks out.
Let's use the Pythagorean theorem:
[tex] a^{2} +b^{2} =c^{2} [/tex]
a and b represent the leg lengths, whereas c represents the hypotenuse length:
[tex] (\sqrt{2})^{2}+(\sqrt{2})^{2} =(2)^{2} [/tex]
Then we simplify:
[tex] 2+2=4 [/tex]
And this is indeed true.