Let $X, Y$$i_1:X \hookrightarrow \mathbb{P}^n$ and $i_2:Y \hookrightarrow \mathbb{P}^N$ be two projective schemes contained in $\mathbb{P}^n$ for some $n$. Let $f:X \to Y$ be a surjective projective morphism between smooth projective varieties over $\mathbb{C}$. Denote by $g$ the composition of $f$ with $i_2$. Under what condition on $f$$g$ can we conclude that the degree of $X$ is equal to the degree of $Y$ in $\mathbb{P}^N$ added to the degree of the generic fiber of $f$$g$?