Let a1, a2, ...., an be n non-zero real numbers, of which p are positive and remaining are negative. The number of ordered pairs (j, k), j < k, for which aj ak is positive, is 55. Similarly, the number of ordered pairs (j, k), j < k, for which aj ak is negative, is 50. Then, the value of p2 + (n - p)2 is
(a) 629
(b) 325
(c) 125
(d) 221