TeX source:
\dfrac{24}{40}+\dfrac{5 x}{40}