Answer: There are 720 ways to do so.
Explanation:
Since we have given that
Number of spaces in a flagpole = 10
Number of types of flag = 3
Number of spaces for red flag = 1
Number of spaces for green flag = 1
Number of spaces for blue flag = 1
We will use "Fundamental theorem of counting":
So, Number of ways that the 10 spaces of the flagpole can be covered with flags such that no spaces is empty is given by

Hence, there are 720 ways to do so.