The matrix $\mathbf{M}$ represents a sequence of two transformations in the $x$-$y$ plane given by a one-way stretch in the $x$-direction, scale factor 3, followed by a reflection in the line $y=x$.
a. Find $\mathbf{M}$. [3]
b. Give full details of the geometrical transformation in the $x$-$y$ plane represented by $\mathbf{M}^{-1}$. [3]
The matrix $\mathbf{N}$ is such that
$$
\mathbf{MN}=\begin{pmatrix}1&2\\3&2\end{pmatrix}.
$$
c. Find $\mathbf{N}$. [3]
d. Find the equations of the invariant lines, through the origin, of the transformation in the $x$-$y$ plane represented by $\mathbf{MN}$. [5]