That is a very simple mathematics question.
9 |5 i: }/ x" {; P: Y/ n公仔箱論壇Let x = Male, y = Female, z = Child5.39.217.77:88984 q1 t4 K0 I7 C O& H3 s6 V" a) i
6x + 3y + z/2 = 100 Formula 1 b! {+ Z- b: R0 r7 y
x + y + z = 100 Formula 2tvb now,tvbnow,bttvb% A8 @. S- x& u1 S4 W4 h0 R3 K
Simplify Formula 2 into z, we get z = 100 - x - y Formula 3% M, @' b8 r+ ], i0 g' _5 T
Sub Formula 3 into Formula 1, we get 6x + 3y + ( 100 - x - y )/2 = 100 Formula 4
4 m! r m" @9 I" @: w$ O$ A公仔箱論壇Formula 4 can change into 11x + 5y = 100 Formula 5
0 W: d6 e+ i0 U0 E& r$ wIn Formula 5, x can only be 0 - 9, otherwise y will be negative number which we dont want.tvb now,tvbnow,bttvb x: u, h" U2 ~
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.1 E' c9 P) E$ o0 q% `# b9 r6 z; _
Eventually, the answer is 20 female and 80 children and no male. |