Solution (source code)

= Solution

The image contains $t$ and $a^2$, hence also $ta^2t^{-1}=a^3$. It therefore contains $a=a^3(a^2)^{-1}$, so it contains both generators of $S$. More explicitly,
$$
\boxed{\theta(tat^{-1}a^{-1})=a,\qquad\theta(t)=t,}
$$
which proves surjectivity.