Which logarithmic equation is equivalent to the exponential equation below?

8x = 24

A. x = log24 8
B. 24 = log8 x
C. 8 = log24 x
D. x = log8 24