Optimization - Another Wire Problem

HELP
Oops! The GeoGebra applet did not load correctly. Please reload your browser page and keep your fingers crossed!

A wire of length `L` is cut at the red point. The segment to the left of the cut is formed into an equilateral triangle, and the segment to the right of the cut is formed into a square. Let `x` be the length of the segment to the left of the cut.

What value of `x` maximizes the total area of the two shapes? What value of `x` minimizes the total area?