Short cut
Possible values for x are (1, 2, 3, 4, 5, 6), similarly for y and z.
Minimum value of every integer will be 1, so we have to distribute remaining 5(p) to the 3(q) integers.
so answer will be (p+1).(p+2)...upto (q-1) terms/1.2...upto (q-1) terms
= 6.7/1.2 = 21