slope-intercept form:
y=mx+b
m=slope
b=y-intercept.
1) We need to know the value of the slope (m):
Given two points (x₁,y₁) and (x₂,y₂) the slope of the line passes through these points will be:
m=(y₂-y₁)/(x₂-x₁)
We choose two points of this line:
(-1,-8)
(4,2)
The slope will be: m=(2+8)/(4+1)=10/5=2
2) we have to find the y-intercept (b) of this line:
we choose any point of this line: for example (4,2) and plug in this point in this equation:
y=mx+b
therefore:
2=2(4)+b
2=8+b
b=2-8
b=-6
3) we can already make up the equation:
Data:
m=2
b=-6
y=mx+b
y=2x-6
Answer: y=2x-6