Optimization for a triangle + square

1,000 feet of fencing is going to be cut into two pieces. One of the pieces will be used to enclose a square playground and the other will be to enclose an equilateral triangle playground. What should be the dimensions of the two playgrounds to maximize the area the kids have to play?

I have this so far:

Atriangle = 31/2/4 * L2ASquare = X24X + 3L = 1000

Now I'm stuck; I do not know what to do. I'm very confused on how those two shapes sides can relate to one-another.

Re: Optimization for a triangle + square

Originally Posted by kramtastic

1,000 feet of fencing is going to be cut into two pieces. One of the pieces will be used to enclose a square playground and the other will be to enclose an equilateral triangle playground. What should be the dimensions of the two playgrounds to maximize the area the kids have to play?

I have this so far:

Atriangle = 31/2/4 * L2ASquare = X24X + 3L = 1000

Now I'm stuck; I do not know what to do. I'm very confused on how those two shapes sides can relate to one-another.

So the total area is given by

So this gives

Now using the 2nd equation we can eliminate x (or L) to get an equation of one variable