The volume of a cilinder (like the cup) is given by:

Then, each cups can hold:

Now, since each gallon is equivalent to 3785.41 cubic cm then we have a total of 10 times 3785.41=37854.1 cubic cm of lemonade.
Therefore we need:

Hence, we need 18 cups of lemonade and we only have to buy one package.