A collection of 22 dimes and quarters has a total value of $4.00. Write a system of equations that defines this situation and solve using any method.