First we bring the denominator (bx-a) to the left side.
So it becomes y(bx-a) =ax-b
Then, open the bracket ybx-ay=ax-b
Then, put ax to left side, and ay to right side, ybx-ax=ay-b
Take x common from left side,
x(by-a) =ay-b
Now x=(ay-b)/(by-a)
This is same as putting y instead of x in f(x) i.e f(y) =(ay-b) /(by-a) =x
Hope this helps :)