Triangularizing the augmented matrix and using back substitution