To solve the system of equations given by:
- \( x = 3y - 7 \)
- \( y = x + 1 \)
We can substitute the expression for \( y \) from the second equation into the first equation.
-
Substitute \( y \) in the first equation: \[ x = 3(x + 1) - 7 \]
-
Distribute on the right side: \[ x = 3x + 3 - 7 \]
-
Simplify the right side: \[ x = 3x - 4 \]
-
Move \( 3x \) to the left side: \[ x - 3x = -4 \] \[ -2x = -4 \]
-
Divide both sides by -2: \[ x = 2 \]
Now that we have \( x \), we can substitute it back into the second equation to find \( y \): \[ y = x + 1 = 2 + 1 = 3 \]
So the solution to the system of equations is: \[ x = 2, \quad y = 3 \]