Given a class of $m$ kids, $\frac{m}{2}$ boys and $\frac{m}{2}$ girls. Their teacher Erica randomly choosing kids from her class one by one. Define success in the experiment when Erica chose at least one boy and at least one girl. Suppose $Y$ is the number of kids that Erica chose until she was successful in the experiment. What is the distribution of $Y$?
My attempt: Divide the class into two groups, $A$ of boys and $B$ of girls. Erica chooses one child. Suppose, without loss of generality, that Erica chose a boy from group A. Because Erica chose $Y$ kids in total, she has another $Y-2$ kids to choose from group $A$, and one kid from group $B$. Therefore: $$P(Y=i)=(0.5)^{i-2} * 0.5 = 0.5^{i-1} , i >1 $$
I have a feeling that I'm wrong, but I can't think about another solution to this problem.
Edit: @Brian M. Scott has been brought my attention to the fact that the solution I have proposed relates to the case where kids beign chosen with replacement. Therefore, because creative solutions were provided for both cases, I separate the original question into two questions, the first with replacement, and the second without replacement.