A bag contains pennies and nickels. You are given the number of pennies in the bag and the ratio of pennies to nickels. Find the number of nickels in the bag.
8 pennies; ratio of 2:7
8 pennies; ratio of 2:7