I'm trying to familiarize myself with ideals and principle ideals but I'm having some problems when it comes to writing principle ideals when they're not explicitly principle. For example I would like to write $(x-5, 3)$ as a principle ideal in $\mathbb{Q}[X]$. I know that it is possible to write $(x-5, 3)=(f)$ for $f\in\mathbb{Q}[X]$ because $\mathbb{Q}[X]$ is a PID, but I can't seem to be able to find such an $f$. I know that $(x-5,3)=\{(x-5)g+3h:g,h\in\mathbb{Q}[X]\}$, but I don't know how this would help.
Any help is greatly appreciated.