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

A piece of wire 10 m long is cut into two pieces. One piece is bent into a square and the other is bent into equilateral triangle. What is the perimeter of the square so that the total area enclosed is minimum?