A piece of wire 10m long is cut into two pieces. One is bent into a square and the other into a circle. How should the wire be cut so that the area enclosed is (a) a maximum? (b) minimum?

I need help on setting up the original equation. I know how to find derivatives, maximums and minimums.