How many dimes are there in n nickels and q quarters?

2 answers

total cents = 5 n + 25 q
divide by ten
( 5 n + 25 q )/10

if the answer is an integer plus a fraction, truncate and just use the integer unless you have a saw to cut the next dime up.
Thank you