can anyone help me with this ?

hope it can help you,x=-5,x=2
calculation is given in the picture