# How do you solve x + y = 6 and x = y + 2?

Jun 3, 2018

$x = 4 , y = 2$

#### Explanation:

Substitute the second equation into the first equation to get:

$\left(y + 2\right) + y = 6$

$y + 2 + y = 6$

$2 y + 2 = 6$

$2 y = 4$

$y = \frac{4}{2} = 2$

Now, plug in $y = 2$ in either equations to solve for $x$. I'll choose the latter one.

$x = 2 + 2$

$x = 4$

So, the solution to the system of equations is:

$\implies \left[\begin{matrix}x = 4 \\ y = 2\end{matrix}\right]$