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 an equilateral triangle.

(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

You can earn partial credit on this problem.