For a kernel of order \(\displaystyle 2\) we need \(\displaystyle \operatorname{ord}(a)=6\), that is \(\displaystyle \gcd(a,18)=3\).
\[\displaystyle \gcd(a,18)=3\]
There are exactly \(\displaystyle 2\) homomorphisms with a kernel of order \(\displaystyle 2\): those with \(\displaystyle a=3\) and \(\displaystyle a=15\).