P=2(l+b) the length of a rectangle given the perimeter

2(l+b) = p

l+b = p/2
l = p/2 - b