Total number of students = 40
Number of boys = 15
Number of girls = 25
(i) Let E1 be the event of getting a girl's name of the cards
Therefore, P(selecting the name of a girl) = P(E1) = \(\cfrac{number\,of\,outcomes\,favorable\,to\,E_1}{number\,of\,all\,possible\,outcomes}\) = \(\frac{25}{40}\) = \(\frac{5}{8}\)
Thus, the probability that the name written on the card is the name of a girls is \(\frac{5}{8}\).
(ii) Let E2 be the event of getting a boy's name of the cards
Therefore, P(selecting the name of a boy) = P(E2) = \(\cfrac{number\,of\,outcomes\,favorable\,to\,E_2}{number\,of\,all\,possible\,outcomes}\) = \(\frac{15}{40}\) = \(\frac{3}{8}\)
Thus, the probability that the name written on the card is the name of a boys is \(\frac{3}{8}\).