Why equation is represented by the equation on the graph

Answer: Option D
Step-by-step explanation:
The equation of the line, by definition, has the following form:
y=mx+b
Where m is the slope and b is the y-intercept
As you can see in the graph, the line intercept the y-axis at 2, therefore b=2.
Now, to find the slope, choose any point of the line and solve for m:
Point (1,1)
1=m(1)+2
-1=m
Then, the equation is:
y=-x+2
Answer:
Choice D is correct answer.
Step-by-step explanation:
We have given a line.
We have to find the equation of line.
y = mx+c is the equation of line where m denotes slope and c is y-intercept of line.
y-intercept is a point on graph where value of x is zero.
From graph,we observed that
y-intercept is 2.
c = 2
Now, select any point that is passes through the line.
(x,y) = (2,0)
Putting values in equation of line, we have
0 = m(2)+2
2m = -2
m = -1
Hence, slope is -1,
y = (-1)x+(2)
y = -x+2 is equation of line given on the graph.