a bathtub is draining at a consistent 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 of gallons of water in the tub after x minutes.

Answer:
y = 42 - 6 x
Step-by-step explanation:The slope-intercept formula is:
y = m x + b,
or: y = b - m x, since the rate is negative.
For the 1st formula we have: y = 30 and x = 2
For the 2nd formula: y = 12 and x = 5 ( because: 5 = 2 + 3, or : 3 minutes later, which can be confusing )
30 = b - 2 m
12 = b - 5 m
--------------------
b = 30 + 2 m
12 = 30 + 2 m - 5 m
3 m = 18
m = 18 : 3 = 6
b = 30 + 2 * 6 = 30 + 12 = 42
y = 42 - 6 x