The equation of the line in the graph is y = -x + 2
How to find the function graphed
The graphed equation will be written in the form
y = mx + c
where
m = slope
x = intercept
the slope, m is calculated using the points on the graph (0, 2) and (1, 1)
m = (y₀ - y₁) / (x₀ - x₁)
m = (2 - 1) / (0 - 1)
m = (1) / (-1)
m = -1
c = y intercept, from the graph
c = 2
The equation of the line is y = -x + 2