So you have a wire that is 10 meters long, you want to cut it at some point, and use one section to make a square, and the other section to make an equilatteral triangle. What lengths should you cut the wire into in order to have the greatest area when combining the areas of square and the triangle.

I got that the triangle should be from a wire lengthed approximately 5.650 meters, and the square should be from 4.349 meters.

If someone could verify this for me, I would really appreciate it.