The subspace $S \subseteq \mathbb{R}^{4}$ is spanned by the vectors $v_1= \begin{pmatrix} 1\\ 2\\ 3\\ 0 \end{pmatrix}, v_2= \begin{pmatrix} -1\\ 5\\ 7\\ -1 \end{pmatrix}, v_3\begin{pmatrix} 5\\ -4\\ -5\\ 2 \end{pmatrix}$
The basis is $B= \left\{ \begin{pmatrix} 1\\ 2\\ 3\\ 0 \end{pmatrix}, \begin{pmatrix} 0\\ 7\\ 10\\ -1 \end{pmatrix} \right\}$
For each vector $v_1,v_2,v_3$ determine the coordinates relating to the basis.
I'm not sure if it will be correct that's why I need to ask:
For each vector, we have to do the following (I start with $v_1$):
$a\begin{pmatrix} 1\\ 2\\ 3\\ 0 \end{pmatrix}+b\begin{pmatrix} 0\\ 7\\ 10\\ -1 \end{pmatrix}= \begin{pmatrix} 1\\ 2\\ 3\\ 0 \end{pmatrix}$
This is easy, let $a=1$ and $b=0$.
But what's the coordinate for $v_1$ now? Is it $\begin{pmatrix} 1\\ 0 \end{pmatrix}$? And is it correctly done like that (apply the same for the other vectors..)?
Yes, you solution is correct.
But notice that since the subspace is spanned by only two vectors, there maybe vectors that does not fall into this sub-space - and for those vectors, you'll notice that you linear functions do not have a solution.
Example: $a\begin{pmatrix} 1\\ 2\\ 3\\ 0 \end{pmatrix}+b\begin{pmatrix} 0\\ 7\\ 10\\ -1 \end{pmatrix}= \begin{pmatrix} 1\\ 5\\ 3\\ 0 \end{pmatrix}$
For the equation above, you cannot find a pair of (a,b) that satisfies all four rows. Thus $(1, 5, 3, 0)^T$ is not in the subspace spanned by $(1,2,3,0)^T$ and $(0,7,10,-1)^T$