I am trying to solve following question
Let $W_1 = (x, y, 0)$ where $x, y\in \mathbb{R}$ be a subspace of $\mathbb{R^3}$ over field $\mathbb{R}$ and $W_2$ be a subspace of $\mathbb{R^3}$ generated by $\{(1, 2, 3), (1, -1, 1) \}$. Then find out the basis of $W_1 \cap W_2$.
My efforts: $W_1$ is generated by $\{(1, 0, 0), (0, 1, 0) \}$ and hence $\dim W_1 = 2$. Given that $W_2$ is generated by $\{(1, 2, 3), (1, -1, 1) \}$ which are independent and so $\dim W_2 = 2$. Further I computed dimension of $W_1+W_2$ by writing generating vectors of $W_1$ and $W_2$ into a single matrix and then row-reducing it which come out to be $3$. So it follows the dimension of $\dim(W_1 \cap W_2)=1$. But how do I find a basis for it?
Please help me in clearing my doubt. Thank you so much
This intersection is the set of linear combinations of your basis of $W_2$ such that the 3rd component is $0.$ I.e. $a(1, 2, 3)+b(1, -1, 1)$ s.t. $3a+b=0.$ I.e. the line generated by $(1, 2, 3)-3(1, -1, 1)=(-2,5,0).$