I suggest you start by setting up an equation for the two piles of coins, and see if it can be simplified to yield an answer for the sum of the two piles.