The polynomial of degree 5, P(x), has leading coefficient 1, has roots of multiplicity at x=5 and x=0, and a root of multiplicity 1 at x=-2.

Find a possible formula for P(x).
P(x)=

P(x) = x^2 (x-5)^2 (x+2)

You said "roots of multiplicity at x=5 and x=0" , but you didn't state the multiplicity
but it only asked for a possible formula, the above satisfies the conditions