Solution for graph of linear equation on Fig. 1 :
(0,0), (-1,1) and (1,-1)
Sum of (x+y) = 0
Equation for this x + y = 0
because we have x = -y OR -x = y
0 = 0
1 = -1
-1 = 1
Solutions for graph for linear equation of Fig.2 :
(-1,3), (0,2), (2,0)
x+y = 2 is common in all.
∴ y = -x + 2 is the linear equation.