How many real pairs $(x, y)$ are there such that
\[
x^2 + 2y = 2xy \\
x^3 + x^2y = y^2
\]
Find the number of real pairs $(x, y)$ that satisfy the equations.

Let's think step by step and output the final answer within \boxed{}.
user