The whole family has 24 children. Children of Geeta and Sohan are 24−x−(x+1)=23−2x in number. When Sohan's child fights with a Geeta's child, there are x(x+1) fights. When Sohan's child fights with Sohan and Geeta's children, there are x(23−2x) fights. Again, when Geeta's child fights with Sohan and Geeta's children, there are (x+1)(23−2x) fights. Therefore, total number of fights is
F(x)=x(x+1)+x(23−2x)+(x+1)(23−2x)
=23+45x−3x2
=3[233+2254−(x−152)2]
For F(x) to be maximum,
x−152=0,
i.e.,
x=7.5
Since x is an integer, therefore, x=7 or 8. For both x=7 and x=8. Total number of fights is F(x)=191.