Answer:
Math like multiplication, addition, division, and subtraction
A barcode's bars have
1. different thicknesses, so they each signify 1 or 2 nibbles.
2. the combinations of the thicknesses of those bars exceed the trillions. That's why manufacturers and stores never run out of SKU barcodes.