$a=\frac{\log(6)}{\log(18)}~\&~b=\frac{\log(16)}{\ log(18)}$ implies that $b=\frac{a\log(16)}{\log(6)}=a\log_6(16)$