TeX source:
\mathrm{A}(x)=(\text { base })(\text { height })= (x-1)(2)=2 x-2