If a is a zero of p(x), then by factor theorem, p(a)=0
Now, p(x)=x2+7x+10
For x=−2
⇒p(−2)=(−2)2+7(−2)+10=4−14+10=14−14=0
Since p(−2)=0,−2 is a factor of p(x)
For x=−5
⇒p(−2)=(−5)2+7(−5)+10=25−35+10=35−35=0
Since p(−5)=0,−5 is a factor of p(x)
Hence, −2,−5 are the zeroes/factors of p(x).