Artificial intelligent assistant

28 soldiers puzzle A leader ordered his 28 soldiers to protect the castle , the castle has 4 walls or sides. He wants 9 soldiers to guard each wall. How can the be possible ?

One way this can work is if soldiers at the corners are considered to guard two walls. In the most symmetric solution, we can then place $2$ soldiers at each corner, and $5$ along the middle of each side (so $2+5+2=9$ protecting each side).
But really any solution in which there are a total of $8$ soldiers at the four corners will work, e.g.

$$\begin{array}{ccc} 1&6&2\\\6& &4\\\2&4&3 \end{array}$$

xcX3v84RxoQ-4GxG32940ukFUIEgYdPy 48f7d03da59b838e906108f14a25e510