You have 12 billiard balls. One of them is odd in that is slightly off in weight from the others. The problem is to use a balance scale to determine which is the odd ball and whether it is light or heavy.
This little program shows the solution graphically plus it details the logic involved. Have fun with this.