Optimization - Another Wire Problem

HELP

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?