I want to find the general solution of the following:
$$\frac{dy}{dx} = \frac{y}{x+y+2}$$
I substitute $u = x + y+2$ and got the following $du/dx = 1 + dy/dx$.
Then I got an expression as such: $$\frac{du}{dx} = 2 - \frac{x+2}{u}$$
But from this expression, I cannot seem to separate it further. Using an integrating factor also doesn't seem to work. It also doesn't have the form of a bernoulli's equation, due to the $+2$.
How should I further proceed?

Hint...you can write the differential equation upside down i.e. $$\frac {dx}{dy}=\frac xy+1+\frac 2y$$
Now use an integrating factor since you have $$\frac{dx}{dy}-\frac 1yx=1+\frac 2y$$