NEED HELP!

Every evening Jenna empties her pockets
and puts her change in a jar. At the end
of the week she counts her money. One
week she had 50 coins, all of them dimes
and quarters. When she added them up,
she had a total of $10.25.

Let d = number of dimes and
q = number of quarters.