In matrix form, the system is given by

I'll use G-J elimination. Consider the augmented matrix
![\left[ \begin{array}c -1 & 1 & -1 & -20 \\ 2 & -1 & 1 & 29 \\ 3 & 2 & 1 & 29 \end{array} \right]](https://img.qammunity.org/2023/formulas/mathematics/college/4wf3xvu2gi92mysmsvtxm434d702bp6h5p.png)
• Multiply through row 1 by -1.
![\left[ \begin{array}c 1 & -1 & 1 & 20 \\ 2 & -1 & 1 & 29 \\ 3 & 2 & 1 & 29 \end{array} \right]](https://img.qammunity.org/2023/formulas/mathematics/college/ailwr0u9o0vwogc05hqtt4ad2wi9neyv30.png)
• Eliminate the entries in the first column of the second and third rows. Combine -2 (row 1) with row 2, and -3 (row 1) with row 3.
![\left[ \begin{array}c 1 & -1 & 1 & 20 \\ 0 & 1 & -1 & -11 \\ 0 & 5 & -2 & -31 \end{array} \right]](https://img.qammunity.org/2023/formulas/mathematics/college/mzzjl5mosyzux0ueu1lk7v17qt5fykw5yy.png)
• Eliminate the entry in the second column of the third row. Combine -5 (row 2) with row 3.
![\left[ \begin{array}c 1 & -1 & 1 & 20 \\ 0 & 1 & -1 & -11 \\ 0 & 0 & 3 & 24 \end{array} \right]](https://img.qammunity.org/2023/formulas/mathematics/college/ae8xwa3xkej65ouan5t9trdulz9mfsvtw1.png)
• Multiply row 3 by 1/3.
![\left[ \begin{array}c 1 & -1 & 1 & 20 \\ 0 & 1 & -1 & -11 \\ 0 & 0 & 1 & 8 \end{array} \right]](https://img.qammunity.org/2023/formulas/mathematics/college/bhlgbc3vupm61mk1b1axtixnj0wt6y07vo.png)
• Eliminate the entry in the third column of the second row. Combine row 2 with row 3.
![\left[ \begin{array}ccc 1 & -1 & 1 & 20 \\ 0 & 1 & 0 & -3 \\ 0 & 0 & 1 & 8 \end{array} \right]](https://img.qammunity.org/2023/formulas/mathematics/college/pv6k2787nn6894vu0fcsr6ea5q4w8bybgp.png)
• Eliminate the entries in the second and third columns of the first row. Combine row 1 with row 2 and -1 (row 3).
![\left[ \begin{array}c 1 & 0 & 0 & 9 \\ 0 & 1 & 0 & -3 \\ 0 & 0 & 1 & 8 \end{array} \right]](https://img.qammunity.org/2023/formulas/mathematics/college/4nsdpd3ugjwuxbpa9fmcx1hvcjujua1hog.png)
Then the solution to the system is

If you want to use G elimination and substitution, you'd stop at the step with the augmented matrix
![\left[ \begin{array}c 1 & -1 & 1 & 20 \\ 0 & 1 & -1 & -11 \\ 0 & 0 & 1 & 8 \end{array} \right]](https://img.qammunity.org/2023/formulas/mathematics/college/bhlgbc3vupm61mk1b1axtixnj0wt6y07vo.png)
The third row tells us that
. Then in the second row,

and in the first row,
