Going to go over a little bit of theory in the explanation.
So we start off with
To find the asymptotes we have to split it up into its fractions, in other words we can long divide as below.
So that means that
Now we know there will be a vertical asymptote when the function results in something like
which will be undefined. So that will be when
, so
So we have a vertical asymptote at
. Now we know that
is an asymptote, so that means that here
.
Now for the oblique asymptote, what happens as the fraction part
gets smaller and smaller and approaches 0? The function will get closer and closer to
, in other words approach it. So now we know that our other asymptote will be
, corresponding to
, so that means that
and
Now solving for B
So that leaves us with the equation
You don't need all that wordy stuff in the solution, but its just there to explain it (hopefully).
Hope that helps, and hope there are not any mistakes
EDIT: Fixed some of the incomprehendable sentences.
EDIT2: Just thought I'd add the graph so that you can visualise the asymptotic behaviour of the oblique asymptote