Let me elaborate the proof from Martin's answer.
Suppose $A = B[X_1, \cdots , X_n]/(f_1, \cdots , f_r)$, where $f_i \in
B[X_1, \cdots , X_n]$. Suppose also that $y_1, \cdots, y_m$ generate
$A$ as a $B$-algebra, so we have a surjection $\psi: B[Y_1, \cdots,
Y_m] \twoheadrightarrow A$ where $Y_j \mapsto y_j$. Show that the
ideal $\ker(\psi) \subset B[Y_1, \cdots, Y_m]$ is finitely generated.
To simplify notations we write $B[X]$ for $B[X_1, \cdots, X_n]$, and denote $\phi: B[X]\twoheadrightarrow A$ the quotient map. Choose $g_j\in B[X]$ any lifts of $y_j$, hence $\phi(g_j) = y_j = \psi(Y_j)$. Define a homomorphism of algebras $\alpha: B[X, Y] \to B[X]$ fixing $B[X]$ and sending $Y_j \mapsto g_j$. This is an evaluation of $B[X][Y]$ at $Y_j=g_j$ and the kernel is
$$\ker\alpha=(Y_1-g_1, \cdots, Y_m-g_m).$$
Composing $\alpha$ with $\phi$ we obtain $\lambda: B[X, Y]\xrightarrow{\alpha} B[X]\xrightarrow{\phi} A$, whose kernel is finitely generated:
$$\ker\lambda=\alpha^{-1}\ker\phi=(f_1, \cdots, f_r, Y_1-g_1, \cdots, Y_m-g_m).$$
Similarly we can choose $h_i\in B[Y]$, the lifts of $\phi(X_i)$, hence $\psi(h_i)=x_i=\phi(X_i)$, and construct an evaluation map $\beta: B[X, Y]\to B[Y]$ fixing $Y_j$ and sending $X_i\mapsto h_i$, with a kernel
$$\ker\beta=(X_1-h_1, \cdots, X_n-h_n).$$
Composing with $\psi$ to obtain $\mu: B[X, Y]\xrightarrow{\beta} B[Y]\xrightarrow{\psi} A.$ Note that $\lambda$ and $\mu$ are actually the same algebra homomorphism since they both send $X_i\mapsto x_i, Y_j\mapsto y_j$, hence they have the same kernel $\ker\mu=\ker\lambda$. Since $\ker\mu=\beta^{-1}\ker\psi$, and $\beta$ is surjective, we get that
$$\beta(\ker\mu)=\ker\psi,$$
which shows that $\ker\psi$ is also finitely generated as the image of a finitely generated ideal.