D + q = 32....d = 32 - q
0.10d + 0.25q = 6.50
0.10(32 - q) + 0.25q = 6.50
3.20 - 0.10q + 0.25q = 6.50
-0.10q + 0.25q = 6.50 - 3.20
0.15q = 3.30
q = 3.30 / 0.15
q = 22 <=== 22 quarters
d + q = 32
d + 22= 32
d = 32 - 22
d = 10 <=== 10 dimes
We're finding the function of (p+3), which means wherever there's an x, we're replacing it with (p+3).
2 (p+3)^2 + 3 (p+3) + 6
Foil out (p+3)^2.
2 (p^2 + 6p + 9) + 3 (p+3) + 6
Distribute.
2p^2 + 12p + 18 + 3p + 9 + 6
Add like terms.
g (p+3) = 2p^2 + 15p + 33