Given two polynomials $f: x^3+xy+y^2$ and $g:x$ and their induced curves $C_f$ and $C_g$. I want to calculate the intersection multiplicity. So I first claim that $C_f\cap C_g=\{(0,0)\}$.
Since $f$ and $g$ have no common components I calculate the multiplicity as $\text{I}(P,C_f\cap C_g)=\sum_{P\in C_f\cap C_g} \text{I}(P,C_f\cap C_g)=\dim_k k[x,y]/(f,g)=\dim_k k[x,y]/(x,y)=1$.
But how does this fits to Bezout's theorem which states $$\sum\text{I}(P,F\cap G)=\deg F\cdot\deg G$$ for projectives curves $F,G$?