Option (B) is correct.
Explanation: The red flags go on the posts that are multiples of 4:
4,8,12,16,20,24,…
The blue flags go on the posts that are multiples of 10:
10,20,30,40,…
The first number that is in both lists is 20. So post 20 is the first post with both flags. 20 is the first common multiple of 4 and 10.
Why the other options are wrong
- (A) 14 comes from adding 4 and 10. But 14 is not in the list of 4 (it goes 12, 16) and it is not a multiple of 10, so post 14 gets no flag at all.
- (C) 40 is 4 × 10, and post 40 does get both flags. But it is not the first one: post 20 comes before it.
- (D) Post 10 gets only a blue flag. The red flags go 8, 12, so 10 is not a multiple of 4.