There is not enough information to solve for m or for M.
Does your "5 x" mean "5 times"?; do not use x for multiplication: use *
As far as explaining logs, no can do here, not a classroom; but try here:
Logarithms: Introduction to "The Relationship"