log12(45)
=lg45/lg12
=lg(5*9)/lg(3*4)
=(lg5+lg9)/(lg3+lg4)
=(lg5+2lg3)/(lg3+2lg2)
=(1-lg2+2lg3)/(lg3+2lg2)
=(1-a+2b)/(b+2a)