Solve for w P=2l+2w