"That's easy," said Sam. "Find the one flag that's unique, and that's Blackbeard's ship."
Click on a small picture of a flag to see a more detailed view. Inspect them closely to identify the only flag that is unique. Click on the large picture when you've selected the correct one.