Make w the subject of the formula:
y - aw = 2w - 1
y - aw = 2w - 1