If I have $8$ red balls and $8$ blue balls, what are the total number of arrangements possible where each row and each column have $2$ red and $2$ blue balls in a $4 \times 4$ grid?
How will this answer differ if all the ball were distinct?
For the first part, an idea was to find the solutions to $\sum_{i = 1}^4 x_{ij}= 0$, $j = 1, \cdots, 4$, $\sum_{j = 1}^4 x_{ij} = 0$, $i = 1, \cdots, 4$ where $x_{**} = \pm 1$, but that doesn't seem simple to solve.
I can't see any better approach than to count them systematically. Your system has equations in 16 unknowns, so even if you try to solve it over the field with two elements, to take care of $x_{ij} = \pm 1,$ there isn't much hope.
There are 6 possible arrangements for a row:
Note that the last three are "inverses" of the first three, obtained by swapping red and blue. Since the first column has two reds and two blues we must choose two rows from the first three, and two rows from the last three.
When we choose the two rows the start with R, we can either choose the same row twice, or choose two different rows. If we choose the same row twice, then a moment's thought shows we also have to choose the inverse twice. We have six ways to arrange the two copies of the row and its inverse, and three ways to choose the row, so this gives $18$ ways if we choose the same row twice.
Now suppose we we choose row 1 and row 2. Then we have two reds in column 1, 2 blues in column 4, and a blue and a red in columns 2 and 3. To fulfill the conditions, we must choose rows 4 and 5. There are 24 ways to arrange these 4 rows. A similar analysis shows obtains whenever we choose two different rows from among the first 3 (check this), so we have $72$ arrangements, giving a total of $90$ arrangements.
Notice that this analysis shows that whenever we pick a row, we must also pick its inverse. There's probably a quick way to see that at once, which would shorten the argument.