A company needs to erect a fence around a rectangular storage yard next to a 250 m long side of a warehouse. They have 1000 m of available fencing. They will not fence in the side along the warehouse but the fence can extend out from that side. What is the largest area that can be enclosed?

I know that I must find the derivative of the Area with respect to either x or y. How would I approach this problem?