If [tex]a^b=c[/tex] then [tex]\log_ac=b[/tex].
So that means,
[tex]5^2=25\implies\log_5 25=2[/tex].
Hope this helps.