A yacht race consists of four legs. The first three legs are 4 km due east, then 5 km south, followed by 2 km due west.

a) How long is the final leg?

I drew the diagram and got 3.2 km. However the answer is supposed to be 5.39 km, though it could be wrong.

Any help will be appreciated!