x+y+z=2, 5x-y-3z=-40, -x-y-9z=-34
Check the final answer first, then review the worked steps.
Work
- (x+y+z) + (-x-y-9z) = 2 - 34 => -8z = -32 => z = 4
- x+y+4 = 2 => x+y = -2
- 5x-y-12 = -40 => 5x-y = -28
- (x+y) + (5x-y) = -2 - 28 => 6x = -30 => x = -5
- 5+y = -2 => y = 3
Step-by-step solution
- Add the first equation ($x+y+z=2$) and the third equation ($-x-y-9z=-34$) to eliminate $x$ and $y$: $-8z = -32$, so $z=4$.
- Substitute $z=4$ into the first equation: $x+y+4=2$, which simplifies to $x+y=-2$.
- Substitute $z=4$ into the second equation: $5x-y-3(4)=-40$, which simplifies to $5x-y=-28$.
- Add the two new equations: $(x+y) + (5x-y) = -2 + (-28)$, so $6x = -30$, which gives $x=-5$.
- Solve for $y$ using $x+y=-2$: $-5+y=-2$, so $y=3$.