1. Extension of Basis:
Let $V$ be a finite dimensional vector space over a field $k$, and let $S:= \{v_1, \cdots , v_r\}$ be any linearly independent set of vectors in $V$.
Claim: The set $S$ can be extended to a basis of $V$.
If $\dim(V)=r$, we are done. If not, then there is a non-zero element $v_{r+1}\in V$ which is not in the subspace (of $V$) spanned by $S$. One can show that $S \cup \{v_{r+1}\}$ is also linearly independent. If $S \cup \{v_{r+1}\}$ spans the whole space $V$, we are done. Otherwise we continue this process. This process will terminate because $V$ is finite dimensional, and thus we get a basis of $V$.
2. Idea/Method:
Let $V, W$ be finite dimensional vector spaces over a field $k$. Suppose we are given a subspace $V' \subset V$ with a basis $\{e_1, \cdots, e_d\}$ and a subspace$W'\subset W$ with a basis $\{f_1, \cdots ,f_r\}$. We want to find a linear transformation $T: V \to W$ with $\ker T= V'$ and $\operatorname{Im}T=W'$. If such $T$ exists, then by Rank-nullity theorem, $\dim V=d+r$. If this equality doesn't hold, then there is no such $T$. So assume $\dim V=d+r$. Now extend the basis of $\ker T$ to a basis of $V$, say, $\{e_1, \cdots ,e_d, e_{d+1}, \cdots ,e_{d+r}\}$. Define a map $$T: V \to W$$ by
$$T(e_i)=0, 1 \leq i \leq d$$
$$T(e_{d+i})=f_i, 1 \leq i \leq r.$$
Then $T$ is a linear transformation (why?), and $\ker T=V'$, $\operatorname{Im}T=W'$.
Note: The linear transformation $T$ is uniques only up to conjugate.
3. Example:
Let $e_1=(1,0,0), e_2=(0,1,0) \in \mathbb{R^3}$ and $f_1=(1,0) \in \mathbb{R}^2$. We want a linear transformation $T: \mathbb{R}^3 \to \mathbb{R}^2$ such that $\ker T$ has a basis $\{e_1, e_2\}$ and $\operatorname{Im}T$ is generated by $f_1$. Note that, for $e_3=(0,0,1) \in \mathbb{R}^3,\{e_1, e_2, e_3\}$ is a basis of $\mathbb{R}^3$. Now use the above technique to define a linear transformation. We can define $T$ more concretely as follows:
Any $(x,y,z) \in \mathbb{R}^3$ can be written as $xe_1+ye_2+ze_3$. So $$T(x,y,z)=xTe_1+yTe_2+zTe_3=zf_1=(0,z).$$