Option (C) is correct.
Explanation:
A row size works only if it divides 198 (boys) and 270 (girls), that is, if it is a common divisor.
divisors(198)=[1,2,3,6,9,11,18,22,33,66,99,198]
Checking each of these against 270: 1, 2, 3, 6, 9 and 18 divide 270; 11, 22, 33, 66, 99 and 198 do not.
common divisors=[1,2,3,6,9,18]
So she has 6 possible row sizes.
Why the other options are wrong
- (A) 18 is gcd(198,270), the largest row size, not the number of row sizes.
- (B) 4 counts only 1, 2, 3 and 6, missing the common divisors 9 and 18.
- (D) 12 is the number of divisors of 198 alone; half of them (11, 22, 33, 66, 99, 198) do not divide 270.