Answer:
f(n) = -3n + 24
Explanation:
Let the function representing Number of meals and amount of Pet Food remaining is,
f(n) = an + b
Where a = number of meals dispensed
n = amount of Pet food per meal
b = Initial amount of Pet food
From the table attached,
For n = 1 and f(n) = 21,
21 = a(1) + b
a + b = 21 -----------(1)
For n = 3 and f(n) = 15,
15 = a(3) + b
3a + b = 15 -----------(2)
Equation (2) - equation (1),
(3a + b) - (a + b) = 15 - 21
a = -3
From equation (1),
-3 + b = 21
b = 24
Therefore, function will be,
f(n) = -3n + 24