Find the third side of a right triangle if two of the sides…