Problem 950: (1983 AIME, 2)
Let $f(x)=|x-p|+|x-15|+|x-p-15|$, where $0 < p < 15$. Determine the minimum value taken by $f(x)$ for $x$ in the interval $p \leq x\leq15$.
- For $p\le x\le15$, $f(x)=(x-p)+(15-x)+(p+15-x)=30-x$.
- This decreases in $x$, so the minimum is at $x=15$.
- $f(15)=15$. The answer is $\boxed{015}$.
Let $f(x)=|x-p|+|x-20|+|x-p-20|$, where $0 < p < 20$. Determine the minimum value taken by $f(x)$ for $x$ in the interval $p \leq x\leq20$.