In lecture 13 of Gibert Strang's lecture videos from MIT 18.06 Linear Algebra Spring 2005, he reviews the following problem:
What is the dimension of the rowspace of A where $$ Ax=\begin{bmatrix} 2 \\ 4\\ 2 \\ \end{bmatrix} $$ and $$ x=\begin{bmatrix} 2\\ 0\\ 0\\ \end{bmatrix} +c\begin{bmatrix} 1\\ 1\\ 0\\ \end{bmatrix} +d\begin{bmatrix} 0\\ 0\\ 1\\ \end{bmatrix} $$
According to him, the answer is 1 as the nullspace of A has dimension 2. How did he conclude this?
Here is the link to the lecture when he starts describing the problem
This is the rank-nullity theorem. The matrix $A$ is $3\times3$, so $\operatorname{rank}(A)=3-\operatorname{dim}\operatorname{Ker}(A)$.
You are given the solutions $x$ which parametrise a 2-dimensional affine subspace of $\mathbb{R}^3$, hence the kernel of $A$ is 2-dimensional - namely, $\operatorname{Ker}(A)=\operatorname{span}\left(\begin{bmatrix} 1\\ 1\\ 0\\ \end{bmatrix} ,\begin{bmatrix} 0\\ 0\\ 1\\ \end{bmatrix}\right)$. Hence, $\operatorname{rank}(A)=1$.