A square and a equilateral triangle are to be formed out of the same piece of wire. The wire is 6 inches long. What is the maximum of the total area the square and the triangle?