First we need to calculate the slope
[tex]m=\frac{10-8}{-1-0}=\frac{2}{-1}=-2[/tex]And then we have to use the slope intercept equation
[tex]y-y_0=m(x-x_0)[/tex]in this case, yo=8 and xo=0
[tex]\begin{gathered} y-8=-2(x-0)=-2x \\ y=-2x+8 \end{gathered}[/tex]