In the larger triangle, that is triangle ABC, the hypotenuse (longest side) is shown as 5 units (3.2 + 1.8) and one of the other sides is shown as 3. Using Pythagoras' theorem we now have;
In the smaller triangle ABD, the hypotenuse is given as AB. Hence, applying the Pythagoras' theorem as well, we'll now have;
METHOD 2:
We shall look at the bigger and smaller triangles and use their ratios to find the missing sides.
With AB calculated as 4, we can now solve for BD in triangle ABD using the Pythagoras' theorem (as shown in the earlier solution above).
We can also use the ratios as per the instruction to use a second method and that would be;