I give you two hints:

first, given that (5,9) is on the graph it means that:

r(5) = 9 ............(1)

secondly, since at x = 5 we have a minimum, it means that r'(5) = 0 ........(2)

thus you will obtain two simultaneous equations where you can solve for the two unknowns

this part is trivial once you've completed the first part. just find the x's that make the denominator zero.Find the vertical asymptotes ofrwith the values ofaandbfound in part (a).