TeX source:
\begin{array}{ll} d &= a_2 - a_1 \\ &= 12 - 2 \\ &=10 \end{array}