Given log (9) 8 = a, log (12) 5 = B, find LG2 (9), (8) as the base

Given log (9) 8 = a, log (12) 5 = B, find LG2 (9), (8) as the base


log(8)9=lg9/lg8=2lg3/3lg2=a, lg2=2lg3/3a.
log(3)5=lg5/lg3=b, lg3=lg5/b.
lg5+lg2=lg10=1
So, LG2 = 2 / (3AB + 2)