If you put 3 chocolates in 18 bags you get 54 chocolates in total. Because 3 cannot be split down any lower it will provide the maximum number of bags able to be created.
There will be 3 chocolates and 4 candies in each bag. Making it evenly split to its greatest possibility.