Let xi denote the marks assigned to the question.
Then x1+x2+x3+x4+x5+x6+x7+x8= 30 where xi≥2, i=1,2,3,4,.......8
Let yi=xi−2,i=1,2,,......8 ∴y1+y2+......+y8 =(x1+x2+......+xg)−8×2=30−16=14
Hence the total number of solutions of this equation is 14+8−1C8−1=21C7