A wire of length 34m is to be cut into two pieces. One of the pieces is to be made in to a square and the other into a rectangle whose length is twice its breadth. What should be the lengths of the two pieces, so that the combined area of the square and the rectangle is minimum?