\[y = \frac{3(x - 4)}{(x - 4)(x + 5)} - \frac{x + 2}{x(x + 5)}\]
\[x - 4 \neq 0\]
\[x \neq 4.\]
\[x + 5 \neq 0\]
\[x \neq - 5.\]
\[x \neq 0.\]
\[D(y) = ( - \infty; - 5) \cup ( - 5;0) \cup (0;4).\]