Step-by-step explanation:
The given equation can be further simplified into
[tex]2x^{2}+2x-12=0[/tex]
The roots of a quadratic equation is given by
[tex]x = \dfrac{ - b \: \pm \: \sqrt{ {b}^{2} - 4ac} }{2a} [/tex]
where a = 2, b = 2 and c = -12. Putting these into the roots equation, we get
[tex]x = \dfrac{ - 2 \: \pm \: \sqrt{4 \: - \: 4(2)( - 12)} }{2(2)} = \dfrac{ - 2 \: \pm \: 10}{4}[/tex]
This gives us two possible roots:
x = 2, x = -3
Since the condition is that p < q, we see that p = -3 and q = 2. Therefore,
[tex]q - p = 2 - ( - 3) = 5[/tex]