In a right triangle, the square of the length of the hypotenuse is equal to the sum of the squares of the lengths of the legs.
\Apply Pythagorean formula,
.
The length of the hypotenuse (c) = 5 and length of one side (a) = 3
\Substitute the values in above formula.
\
(Simplify)


The length of the third side is 4.