Let x and y be real numbers such that $6x^2 + 2xy + 6y^2 = 9 $.Find the maximum value of $x^2+y^2$ I tried to re-arrange the terms
$6x^2 + 2xy + 6y^2 = 9 $
$6x^2 + 6y^2 = 9 - 2xy $
$6 (x^2 + y^2) = 9 - 2xy $
$x^2 + y^2 = \frac{9 - 2xy}{6} $
Using A.M $\geq$ G.M
$\frac{x^2 + y^2}{2} \geq xy $
Can ayone help me from here? Am I going correct?

Let $x= r\cos\theta , y= r\sin\theta$ , put it back into the given relation and get a function of $r^2 $in terms of $\theta$ we need to maximize this $r^ 2 $wrt to theta  ,use calculus or just bounds of trigo function
