First look at $\mathbb Z[x]/\langle x^2+2 \rangle$ and some polynomial $p(x)\in \mathbb Z[x]$.
We can find polynomials $q(x), r(x)$ so that $p(x)=q(x)(x^2+2)+r(x)$ and $r(x)=ax+b$. Since $x^2+2$ is irreducible, it has no common factor with $r(x)$ unless $r(x)=0$ and we can find polynomials $s,t$ with $$sp+t(x^2+2)=c$$ where $c$ is an integer. This provides a multiplicative inverse for $p$ only if $c=1$, so we don't yet have a field, although we can nearly invert polynomials - it is just that $\mathbb Z$ doesn't have multiplicative inverses.
Now let's reduce the coefficients modulo $5$. $x^2+2$ remains irreducible*. We can carry through the division, but non-zero $c$ are now invertible modulo $5$, so for non-zero $p$ we can use Euclid's algorithm to find $$sp+t(x^2+2)\equiv 1 $$
So that $s(x)$ is a multiplicative inverse and every non-zero element of the ring is invertible. Hence the ring is a field and the ideal is maximal.
*Note this would not have been the case if we'd been working with $x^2+1$, or if we'd been working with $x^2+2$ modulo $11$ so we have to be careful.
Working modulo $I=\langle x^2+2,5\rangle$ we have $x^2\equiv -2\equiv 3$, so we can compute the inverse of $r=ax+b$ explicitly as $$\frac 1{ax+b}=\frac 1{ax+b}\cdot \frac{ax-b}{ax-b}\equiv\frac a{3a^2-b^2}x-\frac b{3a^2-b^2}$$ where $3a^2-b^2$ is invertible modulo $5$ unless $a,b\equiv 0$.
Working the other way about we can factor $\langle 5\rangle$ first to get the ring of polynomials with coefficients reduced modulo $5$ - so the coefficients are elements of the five element field $F_5$ and $x^2+2$ is irreducible, and we have a standard type of extension field.