Input interpretation
solve P = 2 L + 2 W for W
Result
W = 1/2 (P – 2 L)