8. If $a$ and $b$ are two distinct zeros of the function $f ( x ) = x ^ { 2 } - p x + q$ ($p > 0$, $q > 0$), and the three numbers $a$, $b$, and $-2$ can be arranged to form an arithmetic sequence, and can also be arranged to form a geometric sequence, then the value of $p + q$ equals\\
A. 6\\
B. 7\\
C. 8\\
D. 9