If there are exactly three different real solutions to the equation of X: the second power of X - 2 times the absolute value of X + 2 = m, please guess the value of M and verify it

If there are exactly three different real solutions to the equation of X: the second power of X - 2 times the absolute value of X + 2 = m, please guess the value of M and verify it

When x ≥ 0
(x-2)^2=m+2
x=±[√(m+2)]+2
When x ≤ 0
(x+2)^2=m+2
x=±[√(m+2)]-2
The only case where there are three roots is
-[√(m+2)]+2=[√(m+2)]-2=0
here
√(m+2)=2
m=2
Substitute the value of m into
Three different real number solutions are obtained as x = 0, x = 2, x = - 2