Makayla is taking a math course and is working with the perimeter of rectangles. She knows the perimeter and length of her rectangle but wants to solve for the width. Rearrange the following equation for W, where P is the perimeter, L is the length, and W is the width of the rectangle.
P = 2L + 2W