Dimitar has only dimes and quarters in his piggy bank. If he has 5 more dimes than quarters and the total is $74, how many dimes and quarters does he have?