Final answer:
The linear function that represents Eric's gift card spending is y = -2.5x + 25.
Step-by-step explanation:
The linear function that represents Eric's gift card spending can be determined using the given data points (2, 20), (3, 17.5), and (4, 15).
To find the slope of the function, we use the formula: slope = (change in y)/(change in x).
slope = (20 - 17.5) / (2 - 3) = -2.5.
Using the slope-intercept form of a linear function, y = mx + b, where m is the slope and b is the y-intercept, we can substitute one of the data points to find the equation.
Using the point (2, 20), we have 20 = -2.5 * 2 + b. Solving for b, we get b = 25. Therefore, the equation for Eric's gift card spending is y = -2.5x + 25.