The form of Euler's totient function $\phi$ given there is not very practical, and I notice that you didn't give the value for $\phi(18)$. Here's it's easier to use that for $p$ prime, $\phi(p^k) = p^{k-1}(p-1)$ and that $\phi$ is multiplicative between coprime numbers.
So $\phi(18) = \phi(3^2)\phi(2) = 3^1(3-1)(2-1) = 6$.
Thus any number $a$ coprime to $18$ has $a^6\equiv 1 \bmod 18$ (Euler's theorem).
Since $x^{98}\equiv 7$ is coprime to $18$, $x$ is also. Applying $x^6\equiv 1$ we can see that $x^{96}\equiv 1\bmod 18 $ and thus $x^{98}\equiv x^2\bmod 18$. By inspection, since $7+18=25$, we can see that $x\equiv 5$ is an answer to $x^2\equiv 7 \bmod 18$ and thus $x\equiv -5\equiv 13 \bmod 18$ is also an answer.
A couple of notes:
- Because we ended up looking for $x^2\equiv 7 \bmod 18$, we needed that $7$ is a quadratic residue $\bmod 18$, which is only true of half the values coprime to $18$. If the question had $5$ in place of $7$, there would be no answer.
- If we were looking at a modulus divisible by two odd primes, or by an odd prime and $4$, there would be more than two answers (for any soluble system). For example $x^2\equiv 13 \bmod 36$ has $x\equiv \{7, 11,25,29\}\bmod 36$.