A coin bank containing only dimes and quarters has 38 more dimes than quarters. The total value of the coins is $8. How many quarters and dimes are in the coin bank?