Assuming the distance is covered in positive direction.
Given,
Position of the farthest ball, xf=+15 m
Position of the nearest ball, xn=+5 m
Position of farthest w.r.t nearest ball, xfn=xf−xn=15−5=+10 m
We may also assume the distance is covered in negative direction. Then xfn=−10 m
But since only positive values are given in the option, it means only magnitude is asked.
Hence, option (D) is the correct answer.