\begin{gather*}\color{Cyan} f(x) = \log_{\left(\log_{\frac{1}{3}}x\ +2\right)}\left(\frac{\sqrt{2}x-7}{18-x}\right) \end{gather*}