This example uses a little of everything we discussed, so strap in.
Noticing that the equation is first-order, we start by isolating \(dy/dx\)
\begin{gather*}
y\frac{dy}{dx} + 8x^2e^{x + \cos y} = 6x^2e^x\\
\frac{dy}{dx} = \frac{6x^2e^x - 8x^2e^{x + \cos y}}{y}
\end{gather*}
Next, we can rewrite the exponent in the numerator as a product
\begin{equation*}
\frac{dy}{dx} = \frac{6x^2e^x - 8x^2e^{x}e^{\cos y}}{y}
\end{equation*}
and recognize that there is a common factor in the numerator
\begin{equation*}
\frac{dy}{dx} = \frac{2x^2e^x(3 - 4e^{\cos y})}{y}\text{.}
\end{equation*}
From here, we write the result as a product of fractions,
\begin{equation*}
\frac{dy}{dx} = \frac{2x^2e^x}{1} \cdot \frac{3 - 4e^{\cos y}}{y}\text{,}
\end{equation*}
and the equation is now clearly separable.