A piece of wire 15 m long is cut into two pieces. One piece is bent into a square and the other is bent into a circle.

(a) How much of the wire should go to the square to maximize the total area enclosed by both figures?

(b) How much of the wire should go to the square to minimize the total area enclosed by both figures?

You can earn partial credit on this problem.