Final answer:
To find the equation of a line in slope-intercept form, use the formula y=mx+b. Calculate the slope using the given points and substitute it to find the y-intercept. Finally, write the equation in slope-intercept form.
Step-by-step explanation:
To find the equation of a line in slope-intercept form, we can use the formula y = mx + b, where m represents the slope of the line and b represents the y-intercept.
First, we calculate the slope (m) using the formula: m = (y2 - y1) / (x2 - x1). In this case, we have (7, 2) and (2, 12), so we have m = (12 - 2) / (2 - 7) = -2.
Next, we substitute the slope and one of the given points into the equation to find the y-intercept (b). Using the point (7, 2), we have 2 = -2(7) + b, which simplifies to b = 16.
Finally, we can write the equation in slope-intercept form as y = -2x + 16.
Learn more about writing equations in slope-intercept form