Let $X$ be a compact topological space and $(Y,d)$ be a metric space. Show that for every pair of continuous functions $f\colon X\to Y$ and $g\colon X\to Y$, the extended real number $$ B=\sup\{d(f(x_1),g(x_2)):x_1,x_2\in X\}\in [0,\infty] $$ is, in fact, a real number.
So, I know that a continuous image of a compact set is compact and thus, $f(X)$ is compact and metrizable because it is a subset of a metric space. I'm not sure where to go from there, or if I'm even on the right track.
Hint: Take an arbitrary $x_0\in X$ and try to show that there exists an open ball centered at $x_0$ that contains the whole $X$.