I know that the basis of $\mathbb{R}^3$ is $\{(1,0,0), (0,1,0),(0,0,1)\}$.
Now, let $P_2(\mathbb{R}$ be the set of polynomials with degree less or equal to 2 with coefficients in $\mathbb{R}$ (i.e. $P_2(\mathbb{R}):=\{p(x)\in \mathbb{R}[x] | \text{degree}(p(x))\leq 2\}$.
I also know that the basis of $P_2(\mathbb{R})$ is $\{(1,x)\}$ and with more simple examples I have no problem with this.
Now, let $$S: \mathbb{R}^3\longrightarrow P_2(\mathbb{R}): (a,b,c) \mapsto (a+b+c)+(3b-c)x$$ How do I find the matrix of "S"?
Hint:
The matrix of a linear map has as column vectors the coordinates, in the basis of $P_2$, of the images of the vectors of the basis used for $\mathbf R^3$.
(Incidentally, there is no such thing as THE basis of a vector space: $\mathbf R^3$ has an infinite number of bases. The basis you mention is usually considered as the canonical basis of $\mathbf R^3$).