X=y+1

X+2y=7

1 answer

To solve the system of equations, we can use substitution or elimination. Let's use substitution.

First, solve the first equation for x in terms of y:
x = y + 1

Substitute this value of x into the second equation:
(y + 1) + 2y = 7

Combine like terms:
3y + 1 = 7

Subtract 1 from both sides:
3y = 6

Divide both sides by 3:
y = 2

Now substitute this value of y back into the first equation to find the value of x:
x = 2 + 1
x = 3

Therefore, the solution to the system of equations is x = 3 and y = 2.