Answer:
a) g(w)=180-15w; b) g(6)=90$.
Explanation:
a) if w - the number of weeks, then the money spent in those weeks, is 15*w. If the initial sum is 180$, then the remaining part on the card is 180-15w; finally, g(w)=180-15w;
b) if to substitute w=6 into the equation, then g(6)=180-15*6; ⇔ g(6)=90.