Our band of intrepid pirates, having resolved previous squabbles over distributing booty amongst themselves and other issues have come across a treasure map fragment. The picture has been destroyed, but the following text can be read:
Stand upon the gravesite and you’ll see two great palms towering above all others on the island. Count paces to the tallest of them and turn 90 degrees clockwise and count the same number of paces and mark the spot with a flag. Return to the gravesite and count paces to the second-tallest of the trees, turn 90 degrees counter-clockwise and count off that number of paces, marking the spot with a second flag. You’ll find the treasure at the mid-point between the two flags.
Fortunately, our pirates knew which island the map referred to. Sadly, upon arriving at the island, the pirates discovered that all evidence of a gravesite had faded. The captain was preparing to order his men to dig up the entire island to find the fabled treasure when one of the more geometrically inclined pirates walked over to a particular spot and began to dig. The treasure was quickly unearthed on that very spot.
How did the pirate know where to dig?