For \(\displaystyle 4\) we have \(\displaystyle \gcd(4,18)=2\), so \(\displaystyle \langle 4\rangle\) consists of the \(\displaystyle 9\) even residues.
\[\displaystyle \gcd(4,18)=2\]
An element generates the same subgroup if its gcd with \(\displaystyle 18\) is also \(\displaystyle 2\).
\[\displaystyle \gcd(x,18)=2\]
Among the options, only \(\displaystyle 8\) has gcd \(\displaystyle 2\) with \(\displaystyle 18\).