you have 1000 yards of fencing and you plan to use the fencing to make 2 enclosures, one circular and one a square. How much of the 1000 yard of fencing should be used for each region if you want to maximize the combined area of both regions

Let x yards of fence be used for the circumference of the circle and the rest, (1000-x) yards, be used for the perimeter of the square