CSIR NET June 2022 Q2: Part A – General aptitude

Alternating seating with boys at both ends.
In each row the boys at both ends make the row odd-length (boys = girls + 1). Three equal rows give 3 × (odd) = an odd multiple of 3. Only 27 (section B) qualifies (option 2).
24, 30, 36: even, so not 3 × odd.
