A yacht sailed from wharf A in a south-east direction for 10km and north-east for 24km. Find how far the yacht is from wharf A.

(A)26km
(B)21km
(C) 45km
(D) 40km