Applying the contraction inequality twice gives
∣f(f(400))−f(f(300))∣≤21∣f(400)−f(300)∣≤25, and similarly
∣f(f(800))−f(f(900))∣≤25.
Set
M=f(f(300))=f(f(900)). The triangle inequality now yields
∣f(f(800))−f(f(400))∣≤∣f(f(800))−M∣+∣M−f(f(400))∣≤50.
To attain the bound, define
f by linear interpolation through the points
(300,600),(400,550),(550,575),(650,625),(800,650),(900,600). and set
f(x)=600 for
x≤300 or
x≥900. Every segment has slope with absolute value at most
21, so the contraction condition holds. In particular,
f(300)=f(900)=600, f(400)=550, and
f(800)=650. Hence
f(f(400))=f(550)=575, while
f(f(800))=f(650)=625, giving the difference
50.
Thus, the answer is
B .