SpongeBob SquarePants: Season 12, Episode 21
Plankton becomes a ghost to steal the secret formula, but requires a few lessons from the Flying Dutchman.