This is a very interesting word problem that I came across in an old textbook of mine. So I know the maximum value of the HCF has to be a factor of $540$ and mayhaps the Euclidean Algorithm, but other than that, the textbook gave no hints really and I'm really not sure about how to approach it. Any guidance hints or help would be truly greatly appreciated. Thanks in advance :) So anyway, here the problem goes:
Let $a_1, a_2, ... , a_{49}$ be positive integers such that $$a_1 + a_2 \ + \ ... \ + a_{49} = 540.$$ What can be the maximum value of the highest common factor of the numbers $a_1, a_2, ... , a_{49}$?
Denote by $h$ the highest common factor. If $h\ge 12$, then $a_i\ge h\ge 12$ implies $a_1+\cdots +a_{49}\ge 49\cdot 12=588>540$, a contradiction. Hence $h\le 11$. Now $h=11$ is impossible, because $11\nmid 540$. The rest follows by explicit calculation ($h=10$ is possible).