a=log5175log5245=log525+log57log55+log549⇒a=2+log571+2log57
⇒a+2alog57=2+log57
⇒log57=a−21−2a⋯(1)
b=log5875log51715=3+log571+3log57
⇒b+3blog57=3+log57
⇒log57=b−31−3b⋯(2)
From equation (1) and (2),
a−21−2a=b−31−3b⇒a−3ab−2+6b=b−3−2ab+6a⇒1−ab=5(a−b)
⇒1−aba−b=5