In the following global table 1 assign both the percentages and the labels that must be assigned and joins it to the process flow but does not label correctly, more labeled values are missing according to their percentage
It is pure logic if 10 pallets arrive and 40% must be labeled as type 1 which represents 4 pallets and the rest must be labeled with 20% which would be only two pallets for each type and you are not doing that option because and instead of What it does is that it labels more than 40% in type 1 that should not be done as a solution and that it respects the percentage