The perimeter of a rectangle is given by the formula P=2w+2 l, where w is the width and l is the length. Rearrange the formula for the length (l).
l=1/2P-w
l=2P-2w
l=1/2 w-P
l=P-1/2 w