Jorge has some dimes and quarters. He has 10 more dimes than quarters and the collection of coins is worth $2.40. How many dimes and quarters does Jorge have?