Maximizing and Minimizing Area

A wire 4 meters long is cut into two pieces. One piece is bent into a square for a frame for a stained glass ornament, while the other piece is bent into a circle for a TV antenna. To reduce storage space, where should the wire be cut to minimize the total area of both figures? Give the length of wire used for each:

For the square:

For the circle:

Where should the wire be cut to maximize the total area?

For the square:

For the circle:

I'm completely stumped. Can someone help me?