A piece of wire 18 ft long is cut into two pieces. One piece is used to form a square, and the remaining piece is used to form a circle. Where should the wire be cut so that the combined area of the two figures is a maximum?​