In a family, there are three children: X, Y, and Z. X is the brother of Y, and Y is the sister of Z. If Z is a boy, who is the only girl in the family?

Answer: B. Y
Y is identified as the sister, making her the only girl in the family.