A whale swims due east for a distance of 18.4 km, turns around and goes due west for 3.51 km, and finally turns around again and heads 8.64 km due east.
(a) What is the total distance traveled by the whale?
(b) What is the magnitude of the displacement of the whale?