Let $\mathbb K$ be a field, and $f(x)=p(x)q(x),\,p(x),q(x)\in\mathbb K[x]$ where $p(x)$ and $q(x)$ are two distinct irreducible monic polynomials. Now, compute $\mathbb K[x]/(f(x))$, here the notation $(f(x))$ means the principle ideal generated by $f(x)$,
Here is my approach:
Notice $f(x)=p(x)q(x)$, we want to see what the relation between $(f(x))$ and $(p(x)),\, (q(x))$. It turns out that $(f(x))=(p(x))\cap(q(x))$. This is because for any element in $(f(x))$ it is "divisible" by $p(x)$ and $q(x)$ hence $(f(x))\subseteq(p(x))\cap(q(x))$. On the other hand, let $\rho(x)\in (p(x))\cap(q(x))$, then $\rho(x)=p(x)k(x)=q(x)l(x)$ for some $k(x)$ and $l(x)$ in $\mathbb K[x]$. Since $p(x)$ and $q(x)$ are distinct irreducible polynomials, this indicates $k(x)=q(x)k'(x)$ and $l(x)=p(x)l'(x)$ with $k'(x)$ and $l'(x)$ are two other polynomials in $\mathbb K$. Hence $\rho(x)$ is "divisible" by $f(x)$ i.e. $(p(x))\cap(q(x))\subseteq (f(x))\Rightarrow\, (f(x))=(p(x))\cap(q(x))$.
Then I don't know what to do next. I have a thought to show that $(p(x))$ and $(q(x))$ are comaximal but which may not be true.