Respuesta :

both solutions are x = 2 and x = -2 are correct

because
when x = 2 ,  |2| = 2
and 
when x = -2, |-2| = 2

hope it helps