Respuesta :

n=8
x= -19

Let me know if you need to see how to solve it