10. Find the greatest and smallest values that the function $f(x, y) = xy$ takes on the ellipse

$$\frac{x^2}{8} + \frac{y^2}{2} = 1.$$