Always remember that LMVT requires differentiability on the open interval $(a, b)$. Modulus functions are non-differentiable only where their inner expression becomes zero. For $|x-1| + |x-5|$, the non-differentiable points are $x=1$ and $x=5$, which lie exactly on the boundaries, keeping the open interval $(1, 5)$ perfectly differentiable!