>>12111152The problem would require a bit more rigor in terms of structuring purely because 'this many items in each bag' and 'i have n bags' are the only problematic things to resolve in your given example.
It wouldn't need to be an A.I. though, this could easily be done with a python script so long as people are willing to accept they would need to learn how to form a problem in any meaningful sense instead of simply 'klol gibs muni'.
The main concern being getting people to actually list the unique item and their count per bag, because the remainder of the question is basically a fractional cascade problem which is boring to me.