In the second page of "Algeriac Curve" by Fulton, he stated
If $R$ is a UFD with $K=\operatorname{Frac}(R)$, then by Gauss Lemma for UFD, any irreducible $F\in R[x]$ remains irreducible when considered in $K[x]$. It follows that if $F$ and $G$ are polynomials in $R[x]$ with no common factors in $R[x]$, they have no common factors in $K[x]$.
I understand the first sentence just fine, but I have no idea why the second sentence follows from the first. I tried to prove the second sentence using proof by contradiction, but If we let $H$ be the common factor of $F$ and $G$ in $K[x]$, then we can't say much about $H$ since $H$ is not in $R[x]$, and even if we multiply it with all denominators, so that $aH\in R[x]$ for some $a\in R$, we still can not claim $aH$ is irreducible in $R[x]$ to get any meaningful result.
So my question is: Can you prove the second sentence from the first one? Thank you in advance and in all forms.
Edit 1: By two polynomial $F,G\in R[x] $ having no common factor, I think Fylton means that there are no polynomials $H, P,L\in R[x]$ such that $F=HP,G=PL$ with all of them being non-comstant. Please let me know if that’s a wrong interpretation. And I am willing to accept any answer that interpret what Fulton mean correctly, even if one didn't show their interpretation is equivalent to mine, as long as they point out if mine is correct or not.