Which logarithmic equation is equivalent to the exponential equation below?
5^c = 125
A. log5 125 = c
B. logc 125 = 5
C. log5 c = 125
D. log125 c = 5