Let point A be [tex](2, -6)[/tex] and point B [tex](-1, -8)[/tex]
[tex]m = \frac{y_2 - y_1}{x_2 - x_1} = \frac{-8 - (-6)}{-1 - 2} = \frac{-8 + 6}{-1 -2} = \frac{-2}{-3} = \frac{2}{3}[/tex]
Use the point-slope formula and whichever point you want as , in this case I'll use
[tex]y - y_1 = m(x - x_1)\\y - (-6) = \frac{2}{3}(x - 2)\\y + 6 = \frac{2}{3}x - \frac{4}{3}\\y = \frac{2}{3}x - \frac{4}{3} - 6\\y = \frac{2}{3}x - \frac{14}{3}[/tex]