The sum is maximum, when is
We have,
= Number of ways of selecting objects from two groups of objects one group containing 10 distinct objects of one type and another group containing 20 distinct objects of second kind.
Clearly, is maximum when, because is
maximum for if is even and when is odd it is
maximum for .