A piece of wire 7 m long is cut into two pieces. One piece is bent into a square and the other is bent into an equilateral triangle.

How much wire should be used for the square in order to minimize the total area?