The Pythagorean theorem applies to the sides of this right triangle.
... x² + (4/7)² = (5/7)²
... x² = 25/49 -16/49
... x = √(9/49)
... x = 3/7
The unknown side has length 3/7.
_____
You might recognize that this is a 3-4-5 right triangle with a scale factor of 1/7.