AMC 12B 2005 Problem 20

Let a, b, c, d, e, f, g and h be distinct elements in the set

\{-7,-5,-3,-2,2,4,6,13\}

What is the minimum possible value of

(a+b+c+d)^{2}+(e+f+g+h)^{2} ?

Answer Choices
A. 30
B. 32
C. 34
D. 40
E. 50