Was trying to simplify it further sorry if you confused you
Still dunno how to format it like that
I haven't posted on these forums in a while.
I'll rewrite what Shadowxo posted twice. Once in LaTex form, and once without so that you can see the syntax. Then you can go play with it yourself. That's how I learned LaTex myself. Also, this isn't quite the same LaTex that you use for documents; there are very small differences that I won't go into.
^x = \frac{27}{16}\\<br />x = \frac{\ln\left(\frac{27}{16}\right)}{\ln(4\times 27^3)}\\<br />= \frac{\ln(27) - \ln(16)}{\ln(4)+\ln(27^3)}\\<br />= \frac{\ln(27)-\ln(16)}{\ln(4)+3\ln(27)}<br /><br />)
Slight differences here because I like using the cross instead of asterisk

And because having brackets for logs is clearer.
Here's the source code. You'll need the two tex's I had above at the start and end of the code to make the computer output actual maths symbols.
4^x \times 4^2 = 27^1 \times 27^{-3x}\\
16\times 4^x = \frac{27}{27^3 x}\\
4^x\times 27^{3x} = \frac{27}{16}\\
(4\times 27^3)^x = \frac{27}{16}\\
x = \frac{\ln\left(\frac{27}{16}\right)}{\ln(4\times 27^3)}\\
= \frac{\ln(27) - \ln(16)}{\ln(4)+\ln(27^3)}\\
= \frac{\ln(27)-\ln(16)}{\ln(4)+3\ln(27)}