The problem with what you did
What you have done so far are valid algebraic manipulations, but you haven't made any progress. You ended up with the equation
$$
18 \cdot 18^n - 54 \cdot 2^n = 0
$$
which you will notice is the exact same equation you had in the second step, $18 \cdot 18^n = 54 \cdot 2^n$, so all those intermediate steps (where you subtracted and found a common denominator) didn't get anywhere.
Extended hint
To get somewhere (make progress), you want to isolate $n$ which means bring all the things with $n$ to one side. So you have
$$
18 \cdot 18^n = 54 \cdot 2^n
$$
and you want to bring all the $n$s to one side, so you can divide by $2^n$:
$$
\frac{18^n}{2^n} = \frac{54}{18}
$$
I will leave it to you to simplify $\frac{54}{18}$. What about the other side? Well,
$$
\frac{18^n}{2^n} = \left( \frac{18}{2} \right)^n = ?
$$