Solve for L S=2HW+2HL+2WL