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≤x≤15.

(第一届AIME1983 第二题)