First, the function that we want to optimize is the area of both the circle and the square.

where s is the side length of the square and r is the radius of the circle.

Now we need a constraint function we know that we only have 100 cm of wire so the perimeters of both the square and the circle must be 100cm.

From here just sub to eliminate one variable and you are off to the races. Good luck.