In a right triangle, the lengths of the two sides are 4 and 5 respectively

In a right triangle, the lengths of the two sides are 4 and 5 respectively

If 5 is a hypotenuse, then the third side = root (5-4) = 3
If 5 is a right angle side, then the third side = root (5 + 4) = root 41