The width is 20, and there are two sides that are the width.
So in doing the width he's already used 20 + 20 = 40 feet of fencing.
200 - 40 = 160
We have 160 left for the length, and there are also two sides for the length, so we divide by 2.
160 / 2 = 80
So the length of the pen is 80 feet.