Billy has a $40 gift card. She spends $10 per week. Write a linear equation for this situation.

(Hint: Use y = mx + b, where y is money remaining, m is loss per week, and b is the starting money.)