The rule to remember for going from exponent to logarithm is to remember that the base of the logarithm, is the base of the exponent (and vice versa). The other two numbers swap to other sides of the equals
So 3^4 = 81 becomes log3 81 = 4.
Also log264 = X becomes 2X = 64. So X=6.