To solve for x, simply rearrange the problem:
[tex] A = bx + cw \\ \\ A-cw=bx \\ \\ \frac{A - cw}{b} = x [/tex]