The matrix $A$, given by $$
A=\begin{pmatrix}
1&-1&0&2\\
3&-1&4&0\\
5&-8&-6&19\\
-2&3&2&-7
\end{pmatrix},
$$ represents a transformation from $\mathbb R^4$ to $\mathbb R^4$.
(i) Find the rank of $A$ and show that $$
\left\{
\begin{pmatrix}2\\2\\-1\\0\end{pmatrix},
\begin{pmatrix}1\\3\\0\\1\end{pmatrix}
\right\}
$$ is a basis for the null space of the transformation. [6]
(ii) Show that if $$
A\mathbf x
=p\begin{pmatrix}1\\3\\5\\-2\end{pmatrix}
+q\begin{pmatrix}-1\\-1\\-8\\3\end{pmatrix},
$$ where $p$ and $q$ are given real numbers, then $$
\mathbf x=
\begin{pmatrix}
p+2\lambda+\mu\\
q+2\lambda+3\mu\\
-\lambda\\
\mu
\end{pmatrix},
$$ where $\lambda$ and $\mu$ are real numbers. [2]
(iii) Find the values of $p$ and $q$ such that $$
p\begin{pmatrix}1\\3\\5\\-2\end{pmatrix}
+q\begin{pmatrix}-1\\-1\\-8\\3\end{pmatrix}
=\begin{pmatrix}3\\7\\18\\-7\end{pmatrix}.
$$ [3]
(iv) Find the solution of $$A\mathbf x=\begin{pmatrix}3\\7\\18\\-7\end{pmatrix}$$ of the form $\mathbf x=\begin{pmatrix}4\\9\\\xi\\\eta\end{pmatrix}$, where $\xi$ and $\eta$ are positive integers to be found. [3]