7 mins ago, by
Jakobian @user193319 Consider all the closed balls that contain $B$. All of them have $x$ as center and form a chain. We can pick a set $A\subseteq (0, \infty)$ of radiuses such that each ball containing $B$ is of the form $\overline{B}(x, r)$ for some $r\in A$, and for two distinct $s\neq r$ from $A$, $B(x, r)\neq B(s, r)$. Then $A\subseteq [a, b]$ for some $0 < a < b$ since $X$ is compact and all of the balls $\overline{B}(x, r)$ for $r\in A$ must contain $B$