Tiffany has 22 coins that are dimes and quarters. If the value of the coins is $3.70, how many of each coin does she have? Solve algebraically.