AMC 12A 2025 (Problem 25)

Polynomials P(x)P(x) and Q(x)Q(x) each have degree 33 and leading coefficient 11, and their roots are all elements of {1,2,3,4,5}\{1,2,3,4,5\}. The function f(x)=P(x)Q(x)f(x)=\frac{P(x)}{Q(x)} has the property that there exist real numbers a<b<c<da<b<c<d such that the set of all real numbers xx such that f(x)0f(x)\le0 consists of the closed interval [a,b][a,b] together with the open interval (c,d)(c,d). How many functions f(x)f(x) are possible?
(A)  7\text{(A)}\;7(B)  9\text{(B)}\;9(C)  11\text{(C)}\;11(D)  12\text{(D)}\;12(E)  13\text{(E)}\;13