Nah just basic math.
As there are 6 rows and 9 columns there are total 54 blocks.
As each block can either be empty, positive or negative, it has 3 states.
So total combinations are 3 ^ (6 * 9)
If this is not basic, idk what is 🤷🏻♂️