A bathtub is draining at a constant rate. After 3 minutes of draining, it contained 36 gallons of water, and after 7 minutes, it contained 20 gallons. If t is the number of minutes since the bathtub started draining, and g is the number of gallons of water left in the bathtub, what is the equation of the linear function that models this situation?