Solve for l p=2(l+w)