Nick has $3.90 in quarters and dimes, and the total number of coins is 27. How many quarters and how many dimes?