Prove that:
Let $(X, d)$ be a metric space, and let $A$ be a subset of $X$. The function $f_A\colon X\rightarrow \mathbb{R}$, defined by $f_A (x) = d({\{x}\}, A)$, is continuous.
Honestly, I have NO idea where to start. I need to prove that inverse of an open set in $\mathbb{R}$ is open $X$. What it makes it hard to approach is the definition involved: $$d(A, B) = \operatorname{glb}\{d(a, b)\mid a \in A, b \in B\}.$$
Would someone please guide me how to solve this question?
Thank you.