Jack has only dimes and quarters in his bank. There are 12 coins in the bank and the total value of the coins is $1.95. How many dimes and quarters does Jack have in his bank?