Let $f : \mathbb{R} \to \mathbb{R}$ and $g : \mathbb{R} \to \mathbb{R}$ be continuous functions. Suppose that $D ⊆ \mathbb{R}$, and that $D$ is dense in $\mathbb{R}$. Suppose that $f(x) = g(x)$ for every $x ∈ D$. Prove that $f(x) = g(x)$ for every $x ∈ \mathbb{R}$.
Any tips for where I can start here? I'm pulling up blanks for this.
EDIT: there is a very similar question asked, but I have no idea what a metric space is so the whole thing didn't mean a ton to me unfortunately.