A piece of wire 10 m long is cut into two pieces

A piece of wire 10 m long is cut into two pieces. One piece is bent into a square and the other is bent into an equilateral triangle. How should the wire be cut so that the total area enclosed is

(a) a maximum?
(b) A minimum?