Find the minimum value of $|x+1|+2|x-5|+|2x-7|+|\frac{x-11}{2}|$.
I have no idea how to approach this question. However, I managed to solve it using a rather childish approach. I change this equation by multiplying $2$, getting $2|x+1|+4|x-5|+4|x-3.5|+|x-11|$. Now, I have a number line, and I mark out $-1$, $3.5$, $5$ and $11$. Here, I shall use this analogy which may seem childish. There are $2$ houses at $-1$, $4$ houses at $3.5$, $4$ houses at $5$, and $1$ house at $11$.
Here, I introduce a train station. We need to place it at an optimum place to minimise the distance from every house to it. If it is between $3.5$ and $5$, observe that it needs to move left to please more people(easier to board train). If it is placed between $-1$ and $3.5$, it needs to move right to please more people. Hence, the optimum place to put the train station would be at $3.5$, hence I have $x=3.5$, which is correct. You guys can draw a diagram to understand better. In addition, I noted that this seemed rather similar to some programming problems.
Back to the question, is there a much more elegant way to this problem?

Your method is quite handwavy, and while intuitively it may make sense, mathematically, that's no way to solve a problem.
Instead, you can notice that on the intervals $(-\infty, -1]$, $[-1,3.5]$, $[3.5,5]$ and $[11,\infty]$, the function is linear.
Now, a linear function on a closed interval reaches its minimum on one (or both) of the edges, meaning that the minimum of $f$ over $[-1,3.5]$ can only be reached at $-1$ or at $3.5$. Therefore, the minimum of the entire function (if it exists) can only be reached at the points $-1,3.5,5$ or $11$.
Clearly, because $\lim_{x\to\pm\infty} f(x)=\infty$, the function must have a minimum somewhere, so checking the values $f(-1), f(3.5), f(5)$ and $f(11)$ is enough to find the minimum.