TeX source:
\begin{aligned} &\int_{0}^{5} \mathrm{f}(x)-\mathrm{g}(x) \mathrm{dx}+\int_{5}^{7} \mathrm{~g}(x)-\mathrm{f}(x) \mathrm{dx}=20 \frac{5}{6}+12 \frac{4}{6}=33 \frac{1}{2} . \end{aligned}