n + q = 35
n = 35-q
0.05n + 0.25q = 8.15
0.05(35-q) +0.25q = 8.15
1.75 -0.05q + 0.25q =8.15
1.75 + 0.20q = 8.15
0.20q = 6.40
q = 6.40 / 0.20 = 32
32 quarters and 3 nickels