The equation of a line given two points A and B is calculated by the formula
From the graph given, we have two points.
Substituting the values of the given points into the formula to get the equation of line
Hence, the equation of the line is y=1-x/2