A man has 28 coins in his pocket, all of which are dimes and quarters. if the total value of his change is 520 cents, how many dimes and how many quarters does he have?