The matrix $\mathbf{M}$ is given by
$$
\mathbf{M}=\begin{pmatrix}1&2\\0&1\end{pmatrix}\begin{pmatrix}\cos\theta&-\sin\theta\\\sin\theta&\cos\theta\end{pmatrix},
$$
where $0<\theta<2\pi$.
a. The matrix $\mathbf{M}$ represents a sequence of two geometrical transformations in the $x$-$y$ plane. State the type of each transformation, and make clear the order in which they are applied. [2]
b. Find the value of $\theta$ for which the transformation represented by $\mathbf{M}$ has a line of invariant points. [7]