How is the colour of the tiles in the rectangle determined by the colour of the tiles multiplied?

If you multiply of one colour by tiles of the opposite colour, then the rectangle has:

 tiles of the colour that has the most tiles

tiles of the colour that has the least tiles

red tiles

yellow tiles

I'd like to review an earlier video.