Solve for w y-aw=2w-1