This is because technically a square is rectangle, and because one side is covered by the barn, and assuming the barn is 100 ft long, each side of the fence is 100 ft long, so the area is equal to
or
which is 10000 due to the fact that there are a total of 4 zero's