As the total number of flags is 27, so there would be 13 flags on one side, 13 flags on the other side and one flag in the middle.
Consider that she fixes 13 flags on one side of the middle flag.
So, the distance covered by Ruchi to fix the first flag and return is 2m+2m=4m.
The distance covered by Ruchi to fix the second flag and return is 4m+4m=8m.
Similarly, the distance covered by Ruchi to fix the thirteenth flag and return is 4m+8m+12m⋯+13terms.
It will form an arithmetic series,
4m+8m+12m⋯+13terms
=132[2(4)+(13−1)4]
=132(56)
=364m
The total distance travelled by Ruchi to fix the flags and return back is 2×364=728m.
The total distance covered by Ruchi only to carry the flag is 12×728=364m.