Skulls and Shackles
Pirates may opt to have prisoners held for ransom. This is managed by ransom brokers available within the cities at ports of call.
Officers and other important NPCs can be ransomed for 50 gp PER class level (150 gp for a Level-3 officer, 250 gp for a Level-5, etc.). That is, after the brokers collect their fees, of course.