How to express the following in terms of x ?

#log_n# 6 = x

(#log_n# 3)^2 + (#log_n# 2)(#log_n# 18)