Consider a sequence $0, 1, 2, 1, 2,···$. Explain why any sequence ${x_k}$ with the property $x_k =$ $1$ or $ 2$ for each $k$ , is a subsequence of this sequence.
I have tried to use the Bolzano-Weierstrass theorem but I am not sure if it is suitable for this question or not.
Bolzano-Weierstrass cannot help you because the given sequence is not convergent and we are not asked about always non-convergent subsequences.
We start with the sequence $(a_i)_{i=0}^\infty$: \begin{align*} a_0 &= 0 \\ a_i &= \begin{cases} 1 ,& \text{$i$ is odd} \\ 2 ,& \text{$i>0$ is even} \end{cases} \end{align*} and wish to show $(x_k)_{k=1}^\infty$ is a subsequence of $(a_i)$ where $x_k \in \{1,2\}$ for all $k$.
We must find a function $i(k)$ such that $a_{i(k)} = x_k$ for all $k \in [1,\infty)$. Set $i(1) = x_1$. For all $k > 1$, set $$ \Delta i(k) = \begin{cases} 1 ,& x_{k+1} \neq x_k \\ 2 ,& x_{k+1} = x_k \end{cases} \text{.} $$ and then $i(k) = i(k-1) + \Delta i(k)$.
Now we proceed by induction. First, $$ x_1 = a_{i(1)} = a_{x(1)} = \begin{cases} 1 ,& x_1 = 1 \\ 2 ,& x_1 = 2 \end{cases} \text{.} $$ Now suppose $a_{i(k-1} = x_{k-1}$. Then \begin{align*} a_{i(k)} &= a_{i(k-1) + \Delta i(k)} \\ &= a_{i(k-1) + \begin{cases} 1 ,& x_{k} \neq x_{k-1} \\ 2 ,& x_{k} = x_{k-1} \end{cases} } \\ &= a_{\begin{cases} i(k-1) + 1 ,& x_{k} \neq x_{k-1} \\ i(k-1) + 2 ,& x_{k} = x_{k-1} \end{cases} } \\ &= \begin{cases} a_{i(k-1) + 1} ,& x_{k} \neq x_{k-1} \\ a_{i(k-1) + 2} ,& x_{k} = x_{k-1} \end{cases} \\ &= \begin{cases} a_{i(k-1) + 1} ,& x_{k} \neq x_{k-1} \\ a_{i(k-1)} ,& x_{k} = x_{k-1} \end{cases} \text{,} \end{align*} where the last equality uses that adding two to an even number yields an even number and likewise for an odd number. But we are done. If $x_{k} = x_{k-1}$, we have proven $a_{i(k)} = a_{i(k-1)}$, as needed, and if $x_k \neq x_{k-1}$ we switch $a_{i(k)}$ between the even index and odd index subsequences of $a_i$ so we switch $a_{i(k)}$ between $1$ and $2$ precisely when $x_k$ switches. Therefore, we have shown that $(x_k)$ is a subsequence of $(a_i)$.