2x-3y+z=5, x+3y+8z=22, 3x-y+2z=12

Check the final answer first, then review the worked steps.

Answer

\(x=3, y=1, z=2\)

Work

  1. $(2x-3y+z) + (x+3y+8z) = 3x+9z=27 \implies x+3z=9 \implies x=9-3z$
  2. $2(9-3z)-3y+z=5 \implies 18-6z-3y+z=5 \implies 3y=13-5z$
  3. $3(9-3z)-y+2z=12 \implies 27-9z-y+2z=12 \implies y=15-7z$
  4. $3(15-7z)=13-5z \implies 45-21z=13-5z \implies 32=16z \implies z=2$
  5. $x=9-3(2)=3, y=15-7(2)=1$

Step-by-step solution

Add the first two equations to get $3x + 9z = 27$, which simplifies to $x + 3z = 9$, or $x = 9 - 3z$. Substitute this into the third equation and the first to solve for $y$ and $z$.