Solve for l p=2l+2w