The 30 inch piece of string is to be cut into 2 pieces. First piece will be formed into shape of the equilateral triangle and second piece into the square. Determine length of first piece if combined area of triangle and square is to be as small as possible.