Differential Equation solve differential equation  $$  \frac{dy}{ dx} =\frac{(3x-y-6)}{(x+y+2)}$$
I tried to do this but it´s first order and posible is separable variables

We can solve the differential equation given by 
$$\frac{dy}{dx}=\frac{3x-y-6}{x+y+2} \tag 1$$
in a straightforward way.  Rearranging $(1)$ reveals
$$x\,dy+y\,dx+(y+2)\,dy+(6-3x)\,dx=0\tag 2$$
Next, we integrate $(2)$ and write
$$\int (x\,dy+y\,dx)\,+\int (y+2)\,dy\,+\int (6-3x)\,dx=C \tag 3$$
Noting that $(x\,dy+y\,dx)=d(xy)$, and evaluating the integrals in $(3)$, we obtain
$$\bbox[5px,border:2px solid #C0A000]{xy+\frac12 y^2+2y+6x-\frac32 x^2=C}$$
And we are done!
