A bathtub is draining at a constant rate. After 2 minutes, it holds 35 gallons of water. Four minutes later, it holds 15 gallons of water. Write an equation that represents the number y of gallons of water in the tub after x minutes.