Start with $1$ to $n$ in the first row.
Make the first column using the lowest and highest numbers, and their average.
Extend upward and downward from the middle number.
Select the last number to add up to $24$.