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 on the card.
∴ P(selecting the name of a girl) = P(E1) =
=
Thus, the probability that the name written on the card is the name of a girl is .
(ii) Let E2 be the event of getting a boy's name on the card.
∴ P(selecting the name of a boy) = P(E2) =
=
Thus, the probability that the name written on the card is the name of a boy is .