Answer :

Y=-x+5
X-2(-x+5)=2
X+2x-10=2
3x=12
X=4

y+4=5
Y=1
The answer is (4,1)
x+y=5
x=5-y

x-2y=2
5-y-2y=2
5-3y=2
-3y=2-5
-3y=-3
-y=-1
y=1

x+1=5
x=4

x-2(1)=2
x-2=2
x=2+2
x=4

The solution of the system of equations is x=4, y=1, or (4,1)