I'm a bit lost and would like your help
If I understand correctly, the straight line $y=x$ can be represented by the matrix/vector
$\begin{bmatrix} x \\ x \end{bmatrix}$
Similarly, $y=3x$ can be represented by
$\begin{bmatrix} x \\ 3x \end{bmatrix}$
Using matrix multiplication, we would need to multiply the first matrix by the matrix
$\begin{bmatrix} 1 & 3 \end{bmatrix}$ $\begin{bmatrix} x \\ x \end{bmatrix}$
which gives $\begin{bmatrix} x & 3x \end{bmatrix}$
Then we would need to take the transpose of this matrix to get $\begin{bmatrix} x \\ 3x \end{bmatrix}$
Is this correct?
A linear map is not defined by a vector, it is defined by a matrix. Here we want a $2×2$ matrix, and if we can map $(1,1)$ onto any nonzero point on the line we are done by properties of linear maps. $$\begin{bmatrix}a&b\\c&d\end{bmatrix}\begin{bmatrix}1\\1\end{bmatrix}=\begin{bmatrix}k\\3k\end{bmatrix}$$ $$\implies3(a+b)=c+d$$ We should also have $a+b\ne0$, otherwise the map's range is not the full line. Hence $3(a+b)=c+d\ne0$ is the condition for a linear map to have the question property.