Both differential equations are a kind that often yields to the integrating factor method.
We want to realize the left hand side as the result of differentiating of a product of the form $f(x)y$ (then we would get (f(x)y)' = f(x)y' + f'(x)y, "explaining" the sum of a term with y' on it, and a term with $y$ on it).
But it doesn't look like that. That's "probably" because we "simplified" after doing the derivative. So we "unsimplify it". We want to find a function $\mu(x)$ (called an "integrating factor") such that $\mu(x)\left(\frac{dy}{dx} + 3y\right) = \mu(x)\frac{dy}{dx} + 3\mu(x)y$ is of the form \frac{d}{dx}(\mu(x)y) = \mu(x)\frac{dy}{dx} + \mu'(x)y.
That means that we need 3\mu(x) = \mu'(x). This differential equation is separable, so we can solve it: $\begin{align*} \frac{d}{dx}\mu &= 3\mu\\ \frac{d\mu}{\mu} &= 3\,dx\\ \int\frac{d\mu}{\mu} &= \int 3\,dx\\ \ln|\mu| &= 3x + C\\ |\mu| &= Ae^{3x},\qquad A\gt 0\\ \mu &= Ae^{3x},\qquad A\neq 0. \end{align*}$ So we can let $\mu(x) = e^{3x}$. Multiplying the entire equation by $e^{3x}$, we get: $ \begin{align*} e^{3x}\frac{dy}{dx} + 3e^{3x}y &= e^{3x}(12x+9)\\ \frac{d}{dx}\left(e^{3x}y\right) &= (12x+9)e^{3x}\\ \int d(e^{3x}y) &= \int (12x+9)e^{3x}\,dx. \end{align*}$ Now do the integral, solve for $y$, and finally plug in the initial value to determine the value of the constant of integration.
The second problem can be solved similarly. You should rewrite the equation in the form $\frac{dy}{dx} + q(x)y = f(x);$ then find an "integrating factor" $\mu(x)$ which, when multiplied through, will give you that the left hand side is exactly the derivative of $\mu(x)y$. (You'll need to solve an auxiliary differential equation $\mu'(x) = q(x)\mu(x)$). Then solve for $y$, and use the initial value.
The third (new) problem would be a simple separable equation if not for the fact that you are interested in the case $x=8$, and at that point you cannot separate (since you cannot divide by $x-8$). Instead, you must again treat it as an integrating factor problem, $\frac{dx}{dy} -e^{-2y}x = -8e^{-2y}$ and look for a integrating factor $\mu(y)$ with \mu'(y) = -\mu(y)e^{-2y}. This leads to $\int\frac{d\mu(y)}{\mu(y)} = -\int e^{-2y}\,dy$ or $\ln|\mu(y)| = \frac{1}{2}e^{-2y}+C$ hence $\mu(y) = e^{\frac{1}{2}e^{-2y}}.$ So then you have $\frac{d}{dy}\left( e^{\frac{1}{2}e^{-2y}}x\right) = -8e^{-2y}$ hence $e^{\frac{1}{2}e^{-2y}}x = 4e^{-2y}.$ I don't see how you get to your expression.