Answer
$y=-10x-8$
Work Step by Step
A linear equation $y=ax+b$ is uniquely defined by two points. To find the coefficients $a$ and $b$, substitute the points $(0,-8)$ and $(-1,2)$ in the equation. We get
$$\begin{cases}
-8&=a\cdot0+b\\
2&=-a+b
\end{cases}$$
We get from the first equation $b=-8$ and from the second $2=-a-8$ or $a=-10.$
Our linear equation is $y=-10x-8$