In general represents the exponent for a that results in p. So your log represents the exponent for 5 that results in 125. So what power of 5 is equal to 125? The answer to that question is the answer to your problem.
I'll leave it up to you to try different powers of 5 until you get 125. (It should take very little trial and error to find the answer.)