Given the points:
(5, 8) and (8. 2);
The equation of the line y = mx + b, will be:
[tex]m\text{ = }\frac{y_2-y_1}{x_2-x_1}\text{ }[/tex]Then:
[tex]m\text{ = }\frac{2\text{ - 8}}{8\text{ - 5}}\text{ = -2}[/tex]Now, to find b:
2 = -2(8) + b
2 = -16 + b
b = 18
So, the equation of the line is:
y = -2x + 18