My post wasn't very clear, so let me first clarify that it is not given that f(Ax) = f(By). I should add that f denotes an activity coefficient, so it's a constant.
And yes MathsIsFun , A is in base x, and B is in base y. Hope you figure it out cos I've been told it's a difficult problem.
Thank you for your time.