Arturo O. answered  04/04/20
Tutor
                    
        5.0
        (66)
            Experienced Physics Teacher for Physics Tutoring
First, find the slope.
m = (y2 - y1) / (x2 - x1)
x1 = -2
y1 = -2
x2 = 8
y2 = 2
Then write the equation in point slope form using either point.
y - y1 = m(x - x1)
or
y - y2 = m(x - x2)
Plug in the numbers. Either equation is correct.