The lines of tokens on the picture is cut into pieces of 3 and 5. The script drops one yellow and one red token at a time. The quantity of the yellow and the red tokens is the same.
Cutting lines into pieces make it easy to tell the quantities and to compare them. We tell the number of the cuts and the remaining loose tokens. For example, eight tens and two is obviously bigger than two tens and eight.
Remark, however, that ten is not the same as 10. If we cut by three, the first cut and zero tokens is 10 (one and zero), but it makes three!