To find the equation in slope-intercept form, we shall begin by finding the slope of the line.
First step is to identify two different points on the line. Observe carefully that when x equals 0, y equals 2. Therefore we have (0, 2). Also when x equals 2, y equals negative 6. Therefore, the other point is (2, -6). With these two points we can now calculate the slope as follows;
![\begin{gathered} m=(y_2-y_1)/(x_2-x_1) \\ (x_1,y_1)\rightarrow(0,2) \\ (x_2,y_2)\rightarrow(2,-6) \\ m=(-6-2)/(2-0) \\ m=-(8)/(2) \\ m=-4 \end{gathered}](https://img.qammunity.org/2023/formulas/mathematics/college/eatxpoao9xv5c0huwb7bv00hyc49y14uiu.png)
With the slope derived as -4, we can now determine the value of b (the y-intercept). We shall take any of the points above, hence let use the first point;
![\begin{gathered} y=mx+b \\ 2=-4(0)+b \\ 2=0+b \\ 2=b \\ y=mx+b\text{ now becomes} \\ y=-4x+2 \end{gathered}](https://img.qammunity.org/2023/formulas/mathematics/college/351tk3psgbi3558pvg9lpyolbihfizixrq.png)
The equation therefore is y = -4x + 2