# How do you factor 2x^2+ay-ax^2-2y?

$\left(2 - a\right) \left({x}^{2} - y\right)$
First arrange the given equation : $2 {x}^{2} - a {x}^{2} - 2 y + a y$
${x}^{2} \left(2 - a\right) - y \left(2 - a\right)$
= $\left(2 - a\right) \left({x}^{2} - y\right)$