Joey decides to empty his piggy bank and count his money. His bank is filled with only nickels and dimes. Joey counted a total of 45 coins that added up to $3.15. How many nickels and how many dimes does Joey have in his piggy bank?