step 1
In the given smaller right triangle on the bottom
we have that
Applying the Pythagorean Theorem
step 2
In the complete right triangle
we have that
Applying the Pythagorean Theorem
step 3
In the right triangle of the top
Applying the Pythagorean Theorem
step 4
Substitute equation 3 in equation 2
step 5
substitute equation 1 in equation 4