The problem is as follows:
Fill out the empty boxes of the figure from below by writing an integer number on each of them such in a way that by summing three numbers which are in the same row, column or diagonal we can obtain always the same sum. From this which is the number which will occupy the square with orange shade?
The figure is shown below:
17
11
18
10
19
I tried different methods by plugin numbers randomly but at no avail. I also read the article at Wikipedia about magic square and calculating the magic constant but this has not helped me at all.
Therefore I couldn't get to an answer to this, so I was hoping somebody could tell me if there is an algorithm or method that is proven to work to solve these problem without just "guessing".
Please, try to use the most details as possible as I'm not good at using imagination. Do not just fill out the drawing and say that's it. This is not what I'm looking for.
So can somebody help me to get an answer to this problem the most detailed way possible?









Suppose you put $x$ in the orange square. Then adding up the numbers in the first column gives a square constant of $x+15$. To make the first row work, the number in the upper right-hand corner must be $12.$ Now to compute the northeast-southwest diagonal we may proceed this way. We know two number in the diagonal already, $10$ and $12$. Suppose the central number is $y$ so that the sum of the diagonal elements is $22+y$. This must be equal to the square constant so $22+y=x+15$ and $y=x-7$. That is, the central number is $x-7$.
Now you can figure out all the remaining squares. Eventually you will get an equation you can solve for $x$ because you can compute the value in a square from the sum of the row elements or the sum of the column elements, and these numbers must be the same.
Go for it!