Danny reached in his pocket and pulled out 75 cents, all in dimes and nickels. He had twice as many dimes as he had nickels. How many nickels did he have? How many dimes did he have?