Find the general solution to the augmented matrix:

$\begin{bmatrix} 1 & 2 & -1 & 7 \\ -1 & -3 & 4 & -6 \\ 2 & -5 & -2 & -31 \end{bmatrix}.$