Using slope-intercept form, an equation of a line can be written as

Find the slope using the two-point formula.

Substitute -6 for m into y = mx + c.

Now, to find the y-intercept,c, substitute any given point into the equation.

Thus, y = -6x + 2, which is the required equation of the line passing through (-1,8) and (1,-4).