Minimize Area from cut wire.....

I have been on this problem forever, and cannot solve it. Does anybody have any ideas?

A wire of length 52 cm is to be cut into two pieces. One of the pieces is to be bent into the form of a circle and the other into the form of a square. How should the wire be cut so that the sum of the enclosed areas is a minimum? What is the perimeter of the square? What is the circumference of the circle?

Thanks in advance for all the help.

Work for Minimization Problem

y= pi(x/2pi)^2 + ((52-x)/4)^2

y'= 2pi(x/2pi) - 2 ((52-x)/4)

x= 2((52/4)-(x/4))

x=2(13-(2x/4))

x=26-(x/2)

x=(52-x)/2

2x=52-x

3x=52

x=(52/3)