Find slope and y-intercept of the line. Compare the values to the equation y= -x+5

We have a graph of a line.
We have to find the y-intercept and slope.
The y-intercept can be found at the point of intersection between the line and the vertical axis. Is the value of the line when x = 0.
In this case, the y-intercept is b = 5.
For the slope, we need two points. We have the y-intercept at point (0,5) andthe x-intercept of the line at (5,0).
Then, we can calculate the slope m as:
[tex]m=\frac{y_2-y_1}{x_2-x_1}=\frac{0-5}{5-0}=-\frac{5}{5}=-1[/tex]If we write the equation of the line in slope-intercept form, we get:
[tex]\begin{gathered} y=mx+b \\ y=-x+5 \end{gathered}[/tex]We have obtained the same equation that is written in the question.
Answer:
The slope is -1.
The y-intercept is (x,y) = (0,5).