If you have multiple equations with multiple variables, you can either do clever substitutions, or turn it into a matrix on which you can perform linear combinations or multiplications (Gauss elimination)
1 1 1 1 2 1 -1 8 1 -1 1 -5
(note how the above 3 rows represent the 3 equations, just got rid of the variables, plus sign and equals sign)
subtract row1 from row3, that eliminates x and z from row 3.