5. Let $x, y$ be real numbers, and $x^{2}+x y+y^{2}=3$. Find the maximum and minimum values of $x^{2}-$ $x y+y^{2}$.
(1994, Huanggang City, Hubei Province Junior High School Mathematics Competition)
(Tip: Construct a quadratic equation. Answer: 9,1.)