Given as
27 boys and 14 girls.
Now, here the teacher has to
(i) Firstly, select a boy among 27 boys, and
(ii) Secondly, select a girl among 14 girls.
The number of ways to select one boy is 27C1 and similarly the number of ways to select one girl is 14C1.
Thus, the number of ways to select 1 boy and 1 girl to represent the class in a function is
14C1 × 27C1 = 14 × 27 = 378 ways.