That is a very simple mathematics question.
, g( ]: x( A6 r公仔箱論壇Let x = Male, y = Female, z = Child
; c# w' S6 p6 T% H) y; l" A# x公仔箱論壇6x + 3y + z/2 = 100 Formula 1
. C3 y4 q+ Q9 [# t9 Etvb now,tvbnow,bttvbx + y + z = 100 Formula 2
8 q Q0 H# n4 j8 w8 f+ K8 b- @! lSimplify Formula 2 into z, we get z = 100 - x - y Formula 3
0 ?# T5 m4 `+ u公仔箱論壇Sub Formula 3 into Formula 1, we get 6x + 3y + ( 100 - x - y )/2 = 100 Formula 4公仔箱論壇% G; |+ o/ q, U5 }- r8 D
Formula 4 can change into 11x + 5y = 100 Formula 5公仔箱論壇 i8 C& }+ f# V" a2 F) E7 u
In Formula 5, x can only be 0 - 9, otherwise y will be negative number which we dont want.( i! x9 C9 V+ b! F
And between 0 and 9, only 0 can give me a single number of y. So, x has to be 0 and y have to be 20. Then put x and y back to formula 1, we get z = 80.tvb now,tvbnow,bttvb, P( D$ a) v+ e! ]
Eventually, the answer is 20 female and 80 children and no male. |