Note that
\begin{equation*}
B = \begin{bmatrix} 1 \amp 2 \\ 2 \amp 4 \\ 1 \amp 2 \end{bmatrix} \sim \begin{bmatrix} 1 \amp 2 \\ 0 \amp 0 \\ 0 \amp 0 \end{bmatrix}
\end{equation*}
Since \(B\) has a free column (column 2), there must be a nontrivial solution to \(A\vec x = \vec 0\text{.}\) Every one of these nontrivial solutions gives a nontrivial linear combination of the vectors which result in \(\vec 0\text{.}\) For example, we can write all solutions to \(A\vec x = \vec 0\) in parametric vector form as \(\vec x = t\begin{bmatrix} -2 \\ 1 \end{bmatrix}\text{.}\) Choosing \(t = 1\text{,}\) we see that
\begin{equation*}
\begin{bmatrix} 1 \amp 2 \\ 2 \amp 4 \\ 1 \amp 2 \end{bmatrix} \begin{bmatrix} -2 \\ 1 \end{bmatrix} = \vec 0 \quad \implies \quad -2\begin{bmatrix} 1 \\ 2 \\ 1 \end{bmatrix} + 1\begin{bmatrix} 2 \\ 4 \\ 2 \end{bmatrix} = \vec 0
\end{equation*}
Therefore, the vectors are linearly dependent. Note, we can solve for either of the two vectors above and rewrite it in terms of the other. For example, we have that
\begin{equation*}
\begin{bmatrix} 2 \\ 4 \\ 2\end{bmatrix} = 2\begin{bmatrix} 1 \\ 2\\ 1\end{bmatrix}\text{.}
\end{equation*}
Rewriting one vector in terms of the others is always possible for any linearly dependent set. Now, for some linearly dependent set, you can rewrite any of the vectors in terms of the others, but for some sets, only certain vectors in the set can be rewritten in terms of the others. One thing that is true: You can always rewrite any vector that corresponds to a free column in terms of the other vectors.