You can still show work using skeeter's method. This is what he was getting at:
Choose a value of x such that the A is eliminated. So let x = -1:
See what happens? You'll just have one variable B, that you can solve for it easily.
Now choose a value of x so that B is eliminated.