The question states that...
Given the vectors $\mathbf p=[-1,3,0]$ and $\mathbf s=[1,-5,2]$, find the components of a vector perpendicular to each other.
You're supposed to find a vector that is perpendicular to both $\mathbf p$ and $\mathbf s$, we're supposed to use the dot product to find the answer but I don't understand how you can get the coordinates.
Let vector $\mathbf a$ be perpendicular to both $\mathbf p$ and $\mathbf s$
This means that... $\mathbf a\cdot \mathbf p =0$ and $\mathbf a\cdot \mathbf s=0$
$$\mathbf a\cdot \mathbf p= -a_1 +3a_2 \\ \mathbf a\cdot \mathbf s= a_1 -5a_2 +2a_3 \\ \text{etc...}$$
How do you resolve this?
Your system of equations $$ -a_1+3a_2=0 \\ a_1-5a_2+2a_3=0 $$ has solution: $$ a_1=3a_2 \ \ \ \ \ a_3=a_2 $$ thus any vector $(3x,x,x)$, $ \ \forall x\in\mathbb{R}$, will be the solution to your problem. In fact the vectors $(3x,x,x)$, $ \ \forall x\in\mathbb{R}$, belong to a $1d$ subspace of the Euclidean $3d$ space, which is the perpendicular direction to the plane defined by $\mathbf{p}$ and $\mathbf{s}$.