TeX source:
\frac{ax+ay}{2a}=\frac{a(x+y)}{2a}=\frac{x+y}{2}