I have no idea how to begin this exercise from the Hartshorne:
If $Y$, $Z$ are two varieties of $\mathbb A^2$ given by the equation $f=0$ and $g=0$, the intersection multiplicity at $P$ is the lengh of the $\mathcal O_p$-module $M = \mathcal O_p/(f,g)$.
The first question is about show that the intersection number is finite. I was thinking to use this characterization : $M$ has finite lenght $\Leftrightarrow$ $M$ is Artinian and Noetherian. I know that $M$ is Noetherian (localization of a Noetherian ring) but I have no idea on how to show that $M$ is Artinian.
Thanks in advance.