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? m

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