So I was again scrolling through Youtube when I came across this video by Cipher proposing the system of equations
$$ \color{white}{f(x)=} \begin{cases} x^2-5xy+6y^2&=0 \\ x^2+y^2&=45 \end{cases} $$
which I thought that I might be able to solve. Here is my attempt at solving the system of equations:$$x^2+y^2-45=x^2-5xy+6y^2$$$$y^2-45=-5xy+6y^2$$$$-5y^2-45=-5xy$$$$5y^2+45=5xy$$$$y^2+9=xy$$$$\frac{y^2+9}{y}=x$$$$\frac{y^4+18y^2+81}{y^2}+y^2-45=\frac{y^4+18y^2+81}{y^2}-\frac{5y^5+90y^3+485y}{y^2}+6y^2$$$$2y^4-27y^2=-5y^5+7y^4+90y^3+18y^2+485y$$$$-5y^5+5y^4+90y^3-9y^2+485y=0$$$$y^4-y^3-18y^2-1.8y-81=0$$Solving for all roots of this quartic equation gets us:$$\text{Real roots: }y=-4.22813\text{, }5.15294$$$$\text{Complex root: }y=0.037595\pm1.92778i$$And plugging all four of these solutions into the equation $x^2+y^2=45$ gets us$$x=\pm5.20797\text{, }\pm4.29502\text{, }\pm6.97962\pm0.00103838i$$Which means the $4$ solutions to the system of equations
$$ \color{white}{f(x)=} \begin{cases} x^2-5xy+6y^2&=0 \\ x^2+y^2&=45 \end{cases} $$
are$$(\pm5.20797,-4.22813)\text{, }(\pm4.29502,5.15294)\text{, and }(\pm6.97962\pm0.00103838i,0.037595\pm1.92778i)$$
My question
Is my solution correct, or what could I do to attain the correct solution/attain it more easily?
We have $$x^2-5xy+6y^2=\color{blue}{x^2+y^2}-5xy+5y^2=\color{blue}{45}-5xy+5y^2=0.$$
So we can write $$9-xy+y^2=0$$ and solve the equation for $y$ in terms of $x$: $$y=\frac{x\pm\sqrt{x^2-36}}{2}.\tag1$$
Now, for which $x$ values will we produce a corresponding $y$ value? We have $$x^2-5xy+6y^2=(x-3y)(x-2y)=0\implies x=3y\ \text{or}\ x=2y.$$
For $x=2y$, we have in $(1)$: $$y=\frac{2y\pm\sqrt{4y^2-36}}{2}\implies 0=\sqrt{4y^2-36}\implies y=\pm3\implies x=\pm6,$$ and for $x=3y$, we have in $(1)$: $$y=\frac{3y\pm\sqrt{9y^2-36}}{2}\implies 8y^2=36\implies y=\pm\frac3{\sqrt2}\implies x=\pm\frac9{\sqrt2}.$$
Therefore, we have four real solutions: $(6,3), (-6,-3), \left(\frac9{\sqrt2},\frac3{\sqrt2}\right), \left(-\frac9{\sqrt2},-\frac3{\sqrt2}\right)$.
Here's a link to the two equations plotted on the same graph.