The equation of the graph is in the form of y =mx + c
where m = slope
and
c = y - intercept
from the graph the y - intercept is 5
so c = 5
The equation now becomes y = mx +5 after substitution but this not the required equation yet. We still need to find m
To find m we pick two points having coordinates of x and y and substitute them into the formular for the slope m
![m\text{ = }(y_2-y_1)/(x_2-x_1)](https://img.qammunity.org/2023/formulas/mathematics/high-school/sukh4lu5s7fgiz5v423o6usjd9gul4kfrj.png)
![\begin{gathered} y_{2\text{ }}=5 \\ y_{1\text{ }}=2 \\ x_2=\text{ 0} \\ x_1=1 \end{gathered}](https://img.qammunity.org/2023/formulas/mathematics/college/ebd79eeosd65pfhc563epatd4lzh41yufp.png)
![m\text{ = }(5-2)/(0-1)=(3)/(-1)=\text{ -3}](https://img.qammunity.org/2023/formulas/mathematics/college/h1reqzwlteodfs6m9pl5jnn84z64xqgj9p.png)
Equation of the line now finally becomes y = -3x + 5