Use an algebraic approach to solve the problem.

Abby has 37 coins, consisting only of dimes and quarters, worth $5.65. How many dimes and how many quarters does she have?