How is it possible to extend a basis for space $\mathbb{R}^3$, for example, to a basis for space $\mathbb{R}^5$? As far as I have understood it is needed to add two extra vectors to the basis in $\mathbb{R}^3$ space. However, I don't get what are we doing with number of elements in each of these basis. I mean that if it is a basis in $\mathbb{R}^3$ then there are three linearly independent vector with three elements but if we extend it what do we do with two missing elements?
Example: Let's have a basis in subspace $\mathbb{R}^2$ that is spanned by these two linearly independent vectors: $(1,2),(5,6)$. Now, I want to extend it to a basis in $\mathbb{R}^3$ space then we add the following vector: $(7,8,9)$. So, the result is: $(1,2,0(?)),(5,6,0(?)),(7,8,9)$
The question is not about finding the third vector rather than what to do with missing elements in less sets (see example).
You have to view the lower dimension space as being $embedded$ in the higher dimension space. for example, the x axis is a 1 dimensional subspace of the plane. By itself, it's a 1 dimensional vectors space. We IDENTIFY it with the isomorphic copy $<x,0>$ in $R^2$. so in your case, you set the extra digits to 0.