You don't give it to the pirate girl. You need to complete the costume and then use it in the jail. If I remember right, you also need a spear and a tarp.So another question is how to save girls from jail? i crafted pumplin with candle and knife and cant give it ti pirate girl