OK, if you want 1 total for all, try this...
=SUMPRODUCT(--($A$6:$A$31=$A$2)*(D6:G31))