The duck flies and walks, in total+ = = = of the way. Hence, the duck swims = of the way. According to the problem, of the way is 10 kilometers; hence, of the way is 2 kilometers. It means that the entire way is 2*36 = 72 kilometers. ANSWER
Let distance from A to B, be D
Flyingof the way, walking of the way, and swimming remaining 10 km results in:
27D + 4D + 360 = 36D ------ Multiplying by LCD, 36
31D + 360 = 36D
360 = 36D - 31D
360 = 5D
Distance from A to B, or