Solution: let the no. of wheels be x and no. of colours in flag be y.According to question, The sum of number of colours in the flag and number of lines in the wheel of the flag is 27.
x + y=27 ……(1)
Number of lines in blue colour wheel = 8 times the number of colours
x=8y ……(2)
Substituting x=8y in eq.1, we get
8y+y=27
9y=27
y=3
putting y=3 in eq.2, we get
x=8 x 3
x=24
So, the no. of wheels in a flag is 24.