Use logarithms to solve expenential equqtion

5^x=30

log 5^x = x * log 5

so,

x log 5 = log 30
x = log 30/log 5

Note that it does not matter what base you use.