A bag of coins contains pennies and nickels. There are 40 coins in all. The total value of the coins is $0.72. How many coins are pennies, and how many are nickels? Write 2 equations.