Gaussian elimination

Row-reduce [2 1 | 5 ; 1 −1 | 1] step by step until the solution is read off.