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

Oct 6, 2015

The solution is
color(blue)(x=1,y=6

#### Explanation:

 y=color(blue)(x+5..........equation $1$
$y = - 2 x + 8$.......equation $2$

Substituting equation $1$ in equation $2$

$y = - 2 x + 8$
$\textcolor{b l u e}{x + 5} = - 2 x + 8$

$3 x = 8 - 5$

$3 x = 3$

color(blue)(x=1

Finding $y$ by substituting $x$ in equation $1$

$y = x + 5$
$y = 1 + 5$

color(blue)(y=6