I come up with a problem that I cannot figure out. Let $B$ be a UFD and $A=B[y]$ the polynomial ring. Given $f\in A$ containing a term $by^i$ with $i>0$ and $b$ not divisible by some prime element $p\in B$. Prove that $(f)$ is not maximal.
I tried to construct a larger ideal containing $(f)$ by taking $(f,py)$ or $(f,p)$, but I cannot prove that $(f,py)\neq (1)$ or $(f,p)\neq 1$.