Derrick has a total of 9 nickels and quarters in his pocket. The total amount of money he has in coins is $1.45.

How many nickels and how many quarters does Derrick have?