The problem is same as the no. of positive integral solution of q1+q2+q3+........+q8=30 such that qi≥2∀i∈(1,8)
So let's distribute 2 to each qi , so now the equation becomes q1+q2+q3+........+q8=30−16⇒q1+q2+q3+........+q8=14
Therefore, the no. of non-negative integral solution with constraint =(14+8-1 14) = ( 21 14 )
Hence the number of ways are ( 21 14 )