TeX source:
\left|\left(\dfrac{3\cdot7^2}{2}+2\cdot7 \right) -\left(\dfrac{3\cdot5^2}{2}+2\cdot5 \right)\right|=\\[1,5em] \left|\dfrac{147}{2}+14-\dfrac{75}{2}-10\right|=40