Start by dodging the ghost that drifts all around the arena. When bombs begin to fall, grab one and hurl it at the Flying Dutchman. Steer clear of his portal and run from the skeletons that appear.
Keep repeating this cycle until the Dutchman is weak enough for SpongeBob to suck him into the bottle and finish the fight.