A piece of wire 18 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 wire should be used for the square in order to maximize the total area?