How do you do this?

w=[k(B+b)]/3

The issue for me is two fold:

IS the subject not math?

Secondly, of more importance, is what is the question? "How do you do this?" hardly makes sense, what are you trying to do?