/**
You arrive in town after a long quest to a dungeon, and you want to sell the treasure you collected during your quest. Unfortunately, the only merchant in town only has X amount of gold, which may be less than the total value of your items. You want to gain the m