The polynomials
\[x^3 + 5x^2 + px + q = 0\]and
\[x^3 + x^2 + px + r = 0\]have exactly two roots in common, so each cubic has a root they do not have in common.  Find the sum of the two roots they do not have in common.
<|im_start|>system
You are a helpful assistant.<|im_end|>
<|im_start|>user
The polynomials
\[x^3 + 5x^2 + px + q = 0\]and
\[x^3 + x^2 + px + r = 0\]have exactly two roots in common, so each cubic has a root they do not have in common.  Find the sum of the two roots they do not have in common.
Please reason step by step, and put your final answer within \boxed{{}}.<|im_end|>
<|im_start|>assistant

user
-6
The polynomials
\[x^3 + 5x^2 + px + q = 0\]and
\[x^3 + x^2 + px + r = 0\]have exactly two roots in common, so each cubic has a root they do not have in common.  Find the sum of the two roots they do not have in common.
train