In a classroom, the average age of boys (b) is g and the average age of girls (g) is b. The average age of all is b+g. At the time of calculation, the class teacher, who is 42 years old was also present in the class. Can you find the value of b+g?	Select the correct option:	A) 8	B) 3	C) 7	D) 9	E) 10

Rationale: a b + g = 8 for b in range ( 199 ) : for g in range ( 199 ) : sum 1 = 2 * b * g + 42 sum 2 = ( b + g ) * ( b + g + 1 ) if ( sum 1 = = sum 2 ) : print ( b , g , sum 1 ) ( b , g ) = ( 35 ) = > b + g = 8
Answer: A