If we think of the "a", "b" and "c" as place-holders, we should be able to see your equation as a quadratic with for "a", for "b" and for "c". And we can substitute these into the quadratic formula, giving us:
Now we just simplify as much as possible:
(Note: Normally . But since must be positive, no matter what p and q are, we do not need to be concerned about absolute value.)
Now that we have reached the "+-", we rewrite this as two equations:
or
And we will finish simplifying them separately.
or