A pirate found a treasure chest containing 3 times the amount of his previous loot of 13 gold coins. After spending 22 of these coins for the crew's rum, he discovered another loot of 47 gold coins. How many gold coins does the pirate have now?