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