Answer
The equation is $y=-3x+2$
Work Step by Step
The formula to find the slope using two points is $\dfrac{y_2-y_1}{x_2-x_1}$, so:
$\dfrac{-2-4}{2-(-1)}=\dfrac{-6}{3}=-2$
Now we can use one of the two points ((2,-2) is my choice) and the slope to find the y-intercept using y=mx+b (which is the slope-intercept form):
$-2=-2(2)+b$
$-2=-4+b$
$-2+4=-4+b+4$
$b=2$
The equation is $y=-3x+2$
We can verify this by using the other point and see if the equality stands:
$4=-2(-1)+2$
$4=2+2$
$4=4\checkmark$