Let us consider $h(x):=f(x)-g(x)+x$. Then $h(x)=x\iff f(x)=g(x)$. Thus $A=\{x|h(x)=x\}=\text{Fix}(h)$. $h$ is of course continuous.
Now we show that the complement of $\text{Fix}(h)$ is open.
Let $x\in\text{Fix}(h)^c$. Then $x$ is not a fixed point of $h$, i.e. $h(x)\neq x$. We have two points $x$ and $h(x)$ of $\mathbb{R}$, and since $\mathbb{R}$ is Hausdorff, we can find open sets $U,V$ with $x\in U$ and $h(x)\in V$ and $U\cap V =\emptyset$. Since $h$ is continuous $h^{-1}(V)$ is open, and $U\cap h^{-1}(V)$ is an open set containing $x$. Observe also that $U\cap h^{-1}(V)$ is disjoint of $\text{Fix}(h)$.
(Suppose $x\in U\cap h^{-1}(V)$ and $h(x)=x$. Since $x\in U\cap h^{-1}(V)$, $x\in h^{-1}(V)$ an $f(x)\in V$. Also $x\in U$ and if $h(x)=x$, then $h(x)\in U$. So $f(x)\in U\cap V$, however $U\cap V=\emptyset$. Contradiction!)
Hence we have found around every point $x$ in $\text{Fix}(h)^c$. This complement is thus open.