Look for $x$ that minimizes $$\sum\limits_{i = 1}^N| x – a_i |$$ with numbers $a_1, \dots, a_N$ that are given and formulate this as a linear program.
I have searched online and found that first of all this $\sum_i| x – a_i|$ should be made linear. The book that I have (aimms optimization modeling) didn't really intuitively help me to grasp how this can be done.