The solution is x = 2 and y = 4
Solution:
Given system of equations are:
y = 2x -------- eqn 1
x = -y + 6 ----------- eqn 2
We can solve the system of equations by substitution method
Substitute eqn 1 in eqn 2
x = -2x + 6
Move the variables to one side and constants to other side
x + 2x = 6
3x = 6
Divide both sides of equation by 3
x = 2
Substitute x = 2 in eqn 1
y = 2(2)
y = 4
Thus the solution is x = 2 and y = 4