Using slope-intercept form, an equation of a line can be written as
[tex]y=mx+c[/tex]Find the slope using the two-point formula.
[tex]\begin{gathered} m=\frac{y_2-y_1}{x_2-x_1} \\ =\frac{-4-8}{1-(-1)} \\ =\frac{-12}{2} \\ =-6 \end{gathered}[/tex]Substitute -6 for m into y = mx + c.
[tex]y=-6x+c[/tex]Now, to find the y-intercept,c, substitute any given point into the equation.
[tex]\begin{gathered} 8=-6(-1)+c \\ 8=6+c \\ c=2 \end{gathered}[/tex]Thus, y = -6x + 2, which is the required equation of the line passing through (-1,8) and (1,-4).