The longest side is the hypotenuse.

Area = length squared, so the length must be 25. Use this value with pythagoras thm to determine the diagonal

Use pythagora's thm, it says, the hypotenuse squared equals the summed squares of the remaining sides.