the first pirate gives himself 98 gold, give the third and fifth one coin each.
The captain gives himself 98 gold coins and give the third and the fifth 1 coin each.