Come on, this problem is peanuts. Slowkid is right.
You assume the wall is as long as you'll ever possibly need it to be (the problem could have been a bit clearer about this). Your constraint is that xy=20000. Draw a diagram of the building, with two sides of fence coming out of it, and a third side of fence connecting those two. Label the two sides "x" and the third "y" (the variables you use don't matter, just be clear about which correspond to the double or the single side). f, which is the length of fence you'll use, is equal to 2x + y. Solve your constraint for y.
y=20000/x
plug into f
f=2x + 20000/x
take derivative
f'=2 - 20000/x^2
set equal to zero, solve for x
2=20000/x^2
x^2=10000
x=100
You can have a fence that's barely there at all or that goes on forever. Domain: 0