Hi, I have an exam on Monday on logarithms and I'm really confused by this question!

In the test I got p/p-1=logb/3loga (this was incorrect)

But today I got p= logb/(log(b/a^3))

And I don't know if my answer today was right or not, and where I went wrong if it isn't!

Please I would really love some help if you can. Thank you so much!