If the two sides with length 3 and 4 are the two legs, then the missing side, i.e. the hypotenuse, is indeed 5.
But it could also be the case that 4 is the hypotenuse and 3 is one of the legs. In this case, the missing side is the other leg, so we calculate it using
![\sqrt{4^2-3^2}=\sqrt{16-9}=\sqrt{7}](https://tex.z-dn.net/?f=%5Csqrt%7B4%5E2-3%5E2%7D%3D%5Csqrt%7B16-9%7D%3D%5Csqrt%7B7%7D)
So, a right triangle with legs
and 3 has an hypotenuse of 4.
By using my brain I can figure it out.