TeX source:
\mathrm{A}=\mathrm{x} \cdot \mathrm{y}=\mathrm{x} \cdot(40-(\mathrm{x} / 2))=40 \mathrm{x}-\frac{\mathrm{x}^{2}}{2}