If we just had two particles, then you would multiply all the different places where X could be times all the different places where the red particle could be, then you'd get all the different configurations for the system. 