Set a = {x  2 + 3x + 2 = 0}, B = {x  2 + (M + 1) x + M = 0}. If a is contained in B, find the value of M

Set a = {x  2 + 3x + 2 = 0}, B = {x  2 + (M + 1) x + M = 0}. If a is contained in B, find the value of M

A={x|x^2+3x+2=0}={-2,-1}
Because a is contained in B
So a &; b
and
B={x|x^2+(m+1)x+m=0}={-1,-m}
Because B already contains - 1
therefore
It can only be - M = - 2
That is, M = 2, then B = {- 1, - 2} is in accordance with