# How do you solve x+y=5 and x-2y= -4?

Aug 3, 2015

The solution for the system of equations is
color(blue)(x=2,y=3

#### Explanation:

$x + y = 5$
x=color(blue)(5-y................equation $\left(1\right)$

x−2y=−4.......equation $\left(2\right)$

Solving through substitution

Substituting equation $\left(1\right)$ in equation $\left(2\right)$ to find $y$:
x−2y=−4
5-y−2y=−4
-3y=−9
color(blue)(y=3

Substituting the value of $y$ in equation $\left(1\right)$ to find $x$
$x = 5 - y$
$x = 5 - 3$
color(blue)(x=2