Each row, column and diagonal adds up to the same number as stated in the question. The middle column adds up to 45, that is
16 + 15 + 14 = 45.
Therefore, the diagonal from top left to bottom right shall have
12 + 15 + 18 = 45
The top row shall have,
12 + 16 + 17 = 45