When Ryan counted some dimes and quarters he had 196 coins and a total of $39.40. How many coins of each kind does Ryan have?