First of all, I assume you mean y=1+2-x.
In the real number system the transitive law holds: if a=b and b=c, then a=c; this is sometimes written as "things equal to the same thing are equal to each other. The point where the two graphs intersect is the point where BOTH equations are satisfied.