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.