[guided]For part (2), we need a different approach from part (1), since transcendence degree is not directly defined in terms of chains of primes (that relationship is the content of the [Dimension of Finitely Generated Domains](/theorems/2951) theorem, which is proved separately).
The key observation is that an integral extension of domains induces an algebraic extension of fraction fields. Let $K = \operatorname{Frac}(A)$ and $L = \operatorname{Frac}(B)$. Why is $L/K$ algebraic? Take any $\beta \in B$. Since $B$ is integral over $A$, there exist $a_0, \ldots, a_{n-1} \in A$ with $\beta^n + a_{n-1}\beta^{n-1} + \cdots + a_0 = 0$. This is a polynomial equation over $A \subset K$, so $\beta$ is algebraic over $K$. Since every element of $L$ is a ratio $\beta_1/\beta_2$ with $\beta_1, \beta_2 \in B$ and $\beta_2 \neq 0$, and algebraic elements form a field, every element of $L$ is algebraic over $K$.
The transcendence degree satisfies a tower formula: for field extensions $k \subset K \subset L$, $\operatorname{trdeg}_k(L) = \operatorname{trdeg}_k(K) + \operatorname{trdeg}_K(L)$. Since $L/K$ is algebraic, $\operatorname{trdeg}_K(L) = 0$, giving $\operatorname{trdeg}_k(L) = \operatorname{trdeg}_k(K)$.
Finally, why is $\operatorname{trdeg}_k(A) = \operatorname{trdeg}_k(K)$? By convention, $\operatorname{trdeg}_k(A) := \operatorname{trdeg}_k(\operatorname{Frac}(A)) = \operatorname{trdeg}_k(K)$ for an integral domain $A$. (Alternatively: the fraction field is obtained by inverting nonzero elements, and if $a/b \in K$ with $a, b \in A$, $b \neq 0$, then $a/b$ satisfies $bx - a = 0$ over $A$, so every element of $K$ is algebraic over $A$, and transcendence bases of $A$ and $K$ over $k$ coincide.) The same applies to $B$ and $L$, giving $\operatorname{trdeg}_k(A) = \operatorname{trdeg}_k(K) = \operatorname{trdeg}_k(L) = \operatorname{trdeg}_k(B)$.[/guided]