Solve the following formula for the perimeter of a rectangle for the length of the rectangle.

P = 2l + 2w

l = P – w

l = w – P

l = 2P - w