There are two ways to solve polynomial division problems, long division, and synthesis. Synthesis won't work because the divisor is not in ax+c form, where a is always 1, and c is any integer. So, long division must be used. I would work it out here, but that would take for ever, so I provided a link to a website that shows you how to solve this.
The sample space of the possible pairs of candies eaten is LL CL
OO LC CC LO OC CO OL. I am hoping that this answer has satisfied
your query and it will be able to help you in your endeavor, and if you would
like, feel free to ask another question.