Let $f$ and $g$ be functions, and suppose $f$ and $g$ are continuous (in particular, this means $D(f)=\mathbb{R}\; D(g)=\mathbb {R}$). Suppose that for every rational number $x\in\mathbb{Q}$, we have $f(x)=g(x).$ Prove that $f(x)=g(x)$ for ${every}$ number $x\in\mathbb{R}$.
Any suggestions on how I am supposed to even begin to approach this problem would help.