The pattern being viewed through the filter reflects all the primary colors of light towards the filter. There are red, green and blue circles from which red, green, and blue light is reflected towards the filter. And there are cyan, magenta, and yellow circles; each of these reflect two primary colors of light towards the filter. For instance, the magenta circle is reflecting red and blue light towards the filter. And the yellow circle is reflecting red and green light towards the filter.
When you inspect the image of this pattern as viewed through the filter, you recognize that two of the three primary colors of light are being transmitted. The red light and the blue light pass through the filter. As such the filter must be a magenta filter since magenta filters block green light and transmit both red and blue light.