Editorial
Need a hint? Checkout the editorial.
View Editorial
Editorial
Form the figure we're seeing that if we arranged it any way,the number of the circle in the middle will be added for six times. Outer numbers will be added for once .
As there're six lines,so one number will be added for six times & other numbers are for once. If we sum up them & divide it by $6$ , we'll get the sum of the $3$ numbers lying in a line.