Can someone please explain this problem?

the complex number 5+2i is a zero of a rational function. the graph of the function also has local maxima at (-1,0)(2,0) and (8,0). what is the least possible degree of the function.