I have n nickels, d dimes and q quarters. In total i have 18 coins. I have twice as many nickels as dimes. Express n times d times q in terms of the number of nickels.