<s>[INST] Factoring High School Level Olympiad Problem Factor $x^2 - 3xy + 2y^2 + x -8y - 6$
Attempt at a solution:
I have factored these and don't know how to continue...
$x^2-3xy +2y^2 = (x - y) (x-2y)$
$x^2 + x -6 = (x + 3) (x - 2)$
$2y^2 - 8y + 6 = 2 (y - 3)(y - 1)$ 
 [/INST] you can write your equation in the form $$y^2-y\left(4+\frac{3}{2}x\right)+\frac{x^2+x-6}{2}=0$$ and solve this for $y$
you will get
$$\left(y-\frac{3}{4}x-2-\frac{1}{4}\sqrt{x^2+40x+112}\right)\left(y+\frac{3}{4}x+2-\frac{1}{4}\sqrt{x^2+40x+112}\right)=0$$
</s>