Answer:
y = -x + 3
Explanation:
Let's find the slope first. The formula is m = (y2 - y1) / (x2 - x1). Plugging in the values from the points (-1,4) and (2,1), we get m = (1 - 4) / (2 - (-1)). Simplifying this gives us m = -3/3 = -1.
Now that we have the slope, we can use one of the points and the slope to find the y-intercept (b). Let's use the point (-1,4). Plugging in the values into the slope-intercept form y = mx + b, we get 4 = -1 * (-1) + b. Simplifying this gives us 4 = 1 + b. Subtracting 1 from both sides gives us b = 3.
So the equation of the line in slope-intercept form is y = -x + 3.