I think your equation is incorrect for two reasons:
First you need to specify a dependent variable.
Second, you have grouped the terms in a manner that does not specify what within the parenthesis is a product and that which is a sum.
If we set your equation up with B = 2, A = 3 and W = B = 2
Then you can end up with two different results within the parenthesis:
(8*2 + 9*3 (36*2) = 16 + 27(72) = 1,960
(8*2 + 9*3)(36*2) = (16 + 27)(72) = 44 * 72 = 3,168
Since W = B and the parenthesis have to equal 1.6666667 since 5B-3B(product/sum of variables), substituting those number back into the equation yield 2 different answers.
Can you share a solution? Or at least tell us what the parenthesis is supposed to be so we can set A = 0 and solve for a closed set.