A piece of wire 40 cm long is to be cut into two pieces. One piece will be bent to form a circle; the other will be bent to form a square.

A) Find the lengths of the two pieces that cause the sum of the area of the circle and the area of the square to be a minimum.

B) How could you make the total area of the circle and the square a maximum?