This is the famous picture "Mental Arithmetic. In the Public School of S. Rachinsky." by the Russian artist Nikolay Bogdanov-Belsky.
The problem on the blackboard is: $$ \dfrac{10^{2} + 11^{2} + 12^{2} + 13^{2} + 14^{2}}{365} $$
The answer is easy using paper and pencil: $2$. However, as the name of the picture implies, the expression ought be simplified only mentally.
My questions:
Are there general mental calculation techniques useful for performing basic arithmetic and exponents?
Or is there some trick which works in this case?
If so, what is the class of problems this trick can be applied to?

I think you can see clearly here that if you let $12$ be equal to $x$, the expression would just then be
$$\frac{(x-2)^2+(x-1)^2+x^2+(x+1)^2+(x+2)^2}{365}$$
Do remember that if you square a binomial $(a+b)$ you would get $a^2+2ab+b^2$; thus if you replace $a$ by $x$ and $b$ by either $\pm 1$ or $\pm 2$ the middle terms would just cancel out mainly $2ab$. So you would be left with
$$\frac{(x^2+4)+(x^2+1)+x^2+(x^2+1)+(x^2+4)}{365}$$
Which then further simplifies into
$$\frac{5x^2+10}{365}$$
$$\frac{720+10}{365}$$
$$=2$$