Answer
y=$\frac{1}{2}$x
Work Step by Step
Slope-intercept form is written as
y=mx+b.
m=$\frac{y_{2}-y_{1}}{x_{2}-x_{1}}$, and it's given that $x_{1}$=-2, $x_{2}$=4, $y_{1}$=-1, $y_{2}$=2, we can solve for m by plugging in the givens into the slope equation.
Therefore, m=$\frac{2-(-1)}{4-(-2)}$=$\frac{3}{6}$=$\frac{1}{2}$.
Now we know that y=($\frac{1}{2}$)x+b=$\frac{1}{2}$x+b, and we can solve for b by plugging in one of the two points, in this case we'll plug in the point (4,2)
2=($\frac{1}{2}$)(4)+b, so 2=2+b, and after we subtract 2 from both sides, b=0
Therefore, y=$\frac{1}{2}$x+0=$\frac{1}{2}$x