write a linear function to model a situation where w is the number of weeks and g w is the value in dollars on a card