I'm assuming you want to find a basis for the subspace
$$S=\{(x_1,x_2,x_3,x_4) \in \mathbb{R}^4 \mid x_1+x_2+2x_3+x_4=0\;\mbox{and}\;x_1+2x_2-x_3=0\}.$$
The standard way to do this is to notice that $S$ is the kernel of the matrix
$$\begin{bmatrix}1 & 1 & 2 & 1 \\ 1 & 2 & -1 & 0\end{bmatrix}.$$
Row reduce to get
$$\begin{bmatrix}1 & 0 & 5 & 2 \\ 0 & 1 & -3 & -1\end{bmatrix}.$$
This tells you that a basis for $S$ is $\{(-5,3,1,0),(-2,1,0,1)\}$.
The dimension of the subspace $S$ of $\Bbb R^4$ is the column rank of the matrix
$$X=\begin{bmatrix}\color{blue}1&\color{red}2&\color{green}2&\color{brown}3\\
\color{blue}2&\color{red}5&\color{green}4&\color{brown}8\\
\color{blue}{-1}&\color{red}{-3}&\color{green}{-2}&\color{brown}{-5}\\
\color{blue}0&\color{red}{2}&\color{green}0&\color{brown}4
\end{bmatrix}$$
since you have written the spanning vectors as the column vectors of the matrix and it is the column rank that gives the number of linearly independent column vectors. The column rank is found by using column transformations to obtain the column echelon form of $X$.
The dimension of the subspace $S$ of $\Bbb R^4$ is also the row rank of the matrix
$$X'=\begin{bmatrix}\color{blue}1&\color{blue}2&\color{blue}{-1}&\color{blue}0\\
\color{red}2&\color{red}5&\color{red}{-3}&\color{red}2\\
\color{green}2&\color{green}4&\color{green}{-2}&\color{green}0\\
\color{brown}3&\color{brown}8&\color{brown}{-5}&\color{brown}4
\end{bmatrix}$$
where the spanning vectors have been written as row vectors of the matrix and the row rank gives the number of linearly dependent row vectors. The row rank is found by using row transformations to obtain the row echelon form of $X'$.
You have made use of the useful property that the row rank and column rank of a matrix are identical. This means you can alternatively obtain the row echelon form of $X$, as you have done, or the column echelon form of $X'$.
Edit. As mentioned in a useful comment, the basis of the column space of $X$ consists of the column vectors of $X$ corresponding to the pivot columns in $REF(X)$. In your case, it is the first two columns, giving the basis as $\{(1,2,-1,0),(2,5,-3,2)\}$. To see why, note that if you remove the last two columns of $X$, it will still have rank $2$, meaning that the first $2$ columns are independent. Adding the third/fourth column will not change the rank.
Best Answer
We have \begin{align*} \left \{ \begin{bmatrix} x_1 \\ x_2 \\ x_3 \end{bmatrix} : x_1-x_2+2x_3=0\right \} &= \left \{ \begin{bmatrix} x_1 \\ x_2 \\ x_3 \end{bmatrix} : x_1=x_2-2x_3\right \} \\&= \left \{ \begin{bmatrix} x_2 - 2 x_3 \\ x_2 \\ x_3 \end{bmatrix} : x_2, x_3 \in K\right \} \\&= \left \{ x_2 \begin{bmatrix} 1 \\ 1 \\ 0 \end{bmatrix} + x_3 \begin{bmatrix} -2 \\ 0 \\ 1 \end{bmatrix} : x_2, x_3 \in K\right \} \\&= \operatorname{span} \left \{ \begin{bmatrix} 1 \\ 1 \\ 0 \end{bmatrix} , \begin{bmatrix} -2 \\ 0 \\ 1 \end{bmatrix} \right \} \end{align*} and the two vectors are linearly independent.