A woman has 31 coins in her pocket, all of which are dimes and quarters. If the total value of the coins is $ 5.65, how many dimes and how many quarters does she have?