Use logarithms to solve expenential equation

5^x=38

Take log on both sides,

xlog5=log 38
so
x=log(38)/log(5)=2.26 approx.