consider the trinomial x^2+10x+24
answer (a) and (b) individually

(a) on a test a student wrote the factored form as (x+2)(x+12) because they noticed that the product of 2 and 12 is 24. the teacher marked the answer wrong. why?

(b) what is the correct factored form of this trinomial? explain how you know this answer is correct