The formula to calculate the equation of a line between two points is,
[tex]\frac{y-y_1}{x-x_1}=\frac{y_2-y_1}{x_2-x_1}[/tex]Given
[tex]\begin{gathered} (x_1,y_1)\rightarrow(-4,2) \\ (x_2,y_2)\rightarrow(1,-8) \end{gathered}[/tex]Therefore,
[tex]\frac{y-2}{x--4}=\frac{-8-2}{1--4}[/tex]Simplify
[tex]\begin{gathered} \frac{y-2}{x+4}=\frac{-10}{1+4} \\ \frac{y-2}{x+4}=-\frac{10}{5} \\ \frac{y-2}{x+4}=-2 \\ \text{Cross}-m\text{ultiply} \\ y-2=-2(x+4) \\ y=-2(x+4)+2=-2x-8+2=-2x-6 \\ \therefore y=-2x-6 \end{gathered}[/tex]Hence, the equation of the line is
[tex]y=-2x-6[/tex]