3. Let $x$ and $y$ be real numbers, and satisfy $x^{2} + xy + y^{2} = 3$. Then the maximum and minimum values of $x^{2} - xy + y^{2}$ are


Prompt: Copy Example 4. Answer: 9 and 1. 

Translate the text above into English, please retain the original text's line breaks and format, and output the translation result directly.