Please help with this question. I appreciate it

we are given
zeros : x=1 with multiplicity
so, we can write as
[tex] y=(x-1)^2 [/tex]
now, we are given
zeros : x=-2 with multiplicity =1
so,
[tex] y=(x-(-2))^1 [/tex]
now, we can combine them
and we get
[tex] f(x)=(x-1)^2(x-(-2))^1 [/tex]
[tex] f(x)=(x-1)^2(x+2) [/tex].............Answer