Let A be X, because the difference between A and B is 9, so B is x-9.
Then there is the equation.
x/6 = (x-9)/4
The solution is x=27.
x-9= 18
So a is 27 and b is 18.