If $R$ is a commutative ring and $a\in R$, then I want to show that $$I=(f_1(x),\dots, f_r(x),x-a)=(f_1(a),\dots,f_r(a),x-a)$$ where $f_i(x)\in R[x]$, and use this fact to show that $$\frac{R[x]}{I}\simeq\frac{R}{(f_1(a),\dots,f_r(a))}.$$
For proving the second statement, I think I have to use the fact that if $\varphi:R\rightarrow S$ is a homomorphism of rings with kernel $I$ and $\varphi(J)=\overline{J}$ where $J$ is some ideal of $R$, then $$\frac{R/I}{\overline{J}}\cong\frac{R}{I+J}$$ but I am stuck. Any help is appreciated.