Let $A$ be a Noetherian domain, and consider $A[X,Y]$. Let $p\subset A[X,Y]$ be a prime ideal, so that $B:=A[X,Y]/p$ is (a domain and) an $A$-algebra of finite type. Now, it is known this result:
If $R$ is a $k$-algebra of finite type that is a domain, $\operatorname{dim}R=\operatorname{trdeg}_k \operatorname {Frac}R $.
Is there a way to find the Krull dimension of $B$ (using $\operatorname{dim}A$ as a known constant) that relies on such result?
The main difficult is that I don't find any algebra over any field in this situation; the only one is $\operatorname{Frac}B$ that is a $\operatorname{Frac}A$-algebra, but it isn't finitely generated a priori, so we can't use the result above. Is that theorem just unrelated to this situation or I'm not seein how to use it?