There are 2 piles of coins. One pile contains 8 gold coins and the other 12 silver coins. The 2 piles of coins weigh the same. One coin is taken from each pile and put into the other. It is now found that the pile of mainly gold coins weighs 2 units more than the pile of mainly silver coins. Find the weight of a silver coins and a gold coin.