A bag contains pennies, nickels, nickels, and nickels. There are 50 coins in total. Of the coins, 14% are pennies and 34% are dimes. There are 6 more nickels than pennies. How much money does the bag contain?