The horizontal asymptote of a function is the value of y when x -> ∞
[tex]\lim _{x\to\infty}f(x)=y[/tex]and the vertical asymptote of a function is the x-value when y -> ∞.
For a rational function, the y approaches infinity when the denominator vanishes. In other words, when in q/p, p --> 0.
Using this fact we see that the denominator of our function must vanish at x = -3. This happens when the denominator has the form
[tex]\frac{1}{x+3}[/tex]because
[tex]\lim _{x\to-3}\frac{1}{x+3}=\infty[/tex]is the vertical asymptote.
For the horizontal asymptote, the function can be of the form
[tex]f(x)=\frac{x}{2(x+3)}[/tex]because
[tex]\textcolor{#FF7968}{\lim _{x\to\infty}\frac{x}{2(x+3)}=\frac{1}{2}}[/tex]Hence the function is
[tex]f(x)=\frac{x}{2(x+3)}[/tex]