Ummmm......
I don't really understand what you DID there to get q = 10.
But....I think you'd better re-check your answer.
There are supposed to be three times as many nickels as quarters. If there are 10 quarters, there would be 30 nickels. And I don't think that 10 quarters and 30 nickels add up to $2.80!!
Let q = number of quarters
then 3q = number of nickels
.25q is the value of the quarters
.05(3q) is the value of the nickels
.25q + .05(3q) = 2.80
.25q + .15q = 2.80
.40q = 2.80
q = 7
So, there are 7 quarters, and 3q, or 21 nickels.
7 quarters are worth .25(7) or $1.75
21 nickels are worth .05(21) or $1.05
$1.75 + $1.05 = $2.80