The example is taken from "Physics: For Scientists and Engineers", by Paul A. Tipler and Gene Mosca.
I found another similar example in another textbook, "Fundamental of physics" by Halliday, Resnick, and Walker. The example is as follows:
A pirate ship is 560 m from a fort defending a harbor...