The two yachts raced past the sea, and crowds stood watching from the shore.