This was an exam problem I had which stumped me. The question was to prove that the ideal generated by $X$ and $Y$ in $\mathbb{Z}[X,Y]$ is not a projective $\mathbb{Z}[X,Y]$-module.
I was trying to exhibit an exact sequence with fourth term $(X,Y)$ which did not split, but hit a dead end.
Let $R=\mathbb Z[X,Y]$ and $I=(X,Y)$. There is a short exact sequence of left $R$-modules $$0\to R\xrightarrow{f} R\oplus R\xrightarrow{g}I\to 0$$ with $f(a)=(Ya,-Xa)$ and $g(a,b)=aX+bY$ for all $a$, $b\in R$.
Check that it doesn't split.