Speak to them and a cut scene will launch, and the Pirate Bomb will unlock in the Toy Store. Purchase it for 500 coins, then go retrieve it from the ship. Come back and throw a bomb at the locked door to blast it open and complete this mission.