no it is not the solution.
since the question is saying -8 is the solution, it is saying that -8 = x
if we change x in the equation and put -8, it would end up as -24=56.
in order for the equation to be true, both sides of the equation have to be equal, which in this case it is not