Can anyone explain step by step the relation between the logs of a number to different bases?

If we take a number x and do the following:

then

What is the relationship of the two?

I believe the formula that sums the relationship is:

Can anyone explain how this is reached?

P.S sorry for the formatting!