If n (n is not equal to 0) is the root of the equation XX + MX + 2n = 0, find the value of M + n

If n (n is not equal to 0) is the root of the equation XX + MX + 2n = 0, find the value of M + n

Because n is the equation x & # 178; + MX + 2n = 0
So n & # 178; + Mn + 2n = 0
n(n+m+2)=0
Because n ≠ 0,
So n + m + 2 = 0
m+n=-2