Search
You will also have to mention the total number of flags. Only then, we can find the total number of arrangements.
Please go through the following link to find a similar question which I covered in a lecture, at 2:45.
https://www.youtube.com/watch?v=ee3vt7TldMI