The first step is to find the slope between the two points using (y2 - y1)/(x2 - x1). Label the first point (x1, y1) and the second point (x2, y2)
m = (8 + 6)/(10 + 7) = 14/17
Now use point-slope form to write the equation:
y - y1 = m(x - x1)
y + 6 = 14/17(x + 7)
To get into slope-intercept form, solve for y by distributing and then subtracting 6 from both sides.
y + 6 = 14/17x + 98/17
y + 6 - 6 = 14/17x + 98/17 - 6
y = 14/17x - 4/17
Hope this helps!