Write your polynomial in monic for gives $p(x)=(x^2-5)^2-24 = x^4-10x^2+1$.
Show that there are no polynomial factors. If there is a linear factor, then it must be of the form $x-1$ or $x+1$ by the rational root test, which means that either $-1$ or $1$ must be a root.
Otherwise, there must be a factorization as two quadratics, and a factorization over the integers.
So, you want: $a,b\in\mathbb Z$ so that:
$$(x^2+ax\pm 1)(x^2+bx\pm 1)= x^4-10x^2+1$$
We quickly see that $a+b=0$ and the coefficint of $x^2$ is $ab\pm 2=-10$. Substituting $b=-a$ we need $a^2=8,12$.
There are no integer solutions for $a$, but interestingly, $\sqrt{8}\in\mathbb Z[\sqrt{2}]$ and $\sqrt{12}\in \mathbb Z[\sqrt{3}]$. That might show you how to find a minimal polynomial in those rings.