Use the cross-product (determinant) area formula. A = (3/sqrt(a), sqrt(a)), C = (-3/sqrt(a), -sqrt(a)), D = (3cos t, a sin t) with t denoting theta.
\(\vec{AC} = \left(-\frac{6}{\sqrt a}, -2\sqrt a\right)\), \(\vec{AD} = \left(3\cos\theta - \frac{3}{\sqrt a},\ a\sin\theta - \sqrt a\right)\).
Cross product: \(\left(-\frac{6}{\sqrt a}\right)(a\sin\theta - \sqrt a) - (-2\sqrt a)\left(3\cos\theta - \frac{3}{\sqrt a}\right) = -6\sqrt a\sin\theta + 6 + 6\sqrt a\cos\theta - 6 = 6\sqrt a(\cos\theta - \sin\theta)\).
Area \(= \frac12 \times 6\sqrt a(\cos\theta - \sin\theta) = 3\sqrt a(\cos\theta - \sin\theta) = 3\sqrt{2a}\cos\left(\theta + \frac{\pi}{4}\right)\).
The maximum is \(3\sqrt{2a}\) (attained at \(\theta = -\frac{\pi}{4}\), fourth quadrant). Setting \(3\sqrt{2a} = 12\) gives \(2a = 16\), so \(a = 8\).
Answer: 8