A bag contains pennies, nickles, dimes, and quarters.There are 50 coins in all. Of the coins, 10% are pennies and 32% are dimes. There are 9 more nickles than pennies. How much money does the bag contain?