A wire 17 inches long is cut into two pieces. One piece is bent to form to form a square and the other is bent to form a rectangle that is twice as wide as it is high. How should the wire be cut in order to minimize the total area of the square and rectangle