I heard this puzzle from a friend, haven't heard back with the answer and it's driving me nuts! It seems like a variation of the counterfeit coin problem.
You have twelve boxes, each containing 1 to 6 marbles. The marbles inside the boxes are bound in place, so they won't roll around if you shake the box. Each marble weighs the same, 1 gram.
You have a simple balance scale.
Finally, you have a reference weight of your choosing.
Using the 12 boxes, the scale, and the reference weight, your task is to determine how many marbles are in each box. What reference weight do you choose?
A partial answer.
As Ross Millikan pointed out, the reference weight must be $24$ or less, otherwise it will not be possible distinguish between having all $1$s and all $2$s. I therefore tried all reference weights between $1$ and $24$ to see if I could find a failure scenario for each weight and therefore show that no single reference weight could handle all scenarios. The result is below:
As you can see, I did not immediately find a failure scenario for the reference weight $22$. Let me know if you find any mistakes and especially let me know if you find a failure scenario for $22$.