Let $X$ be a compact metric space. Suppose for every $x$ and $y$ in $X$ there is a point $m$ in $X$ with $d(x, m) = (1/2)d(x, y)$ and $d(y, m) = (1/2)d(x, y)$. Show that $X$ is connected.
I'm pretty sure the idea is to suppose disconnected, $X=A\cup B $, disjoint clopen, with $x\in A$, $y\in B$, then construct a cauchy sequence of midpoints starting with $(x,y)$, then argue that the limit point (which exists by compactness) can't be in $A$ or $B$, though can't seem to finish it off.
Edit: the previous part of the problem was to show for closed $F$ there exists a $z\in F$ such that $d(x,F)=d(x,z)$, which may or may not be useful