A man's X and a woman's X combine to become a girl, and a man's Y combines with a woman's X to become a boy. But if the sperm don't have equal Xs and Ys, or if other genetic factors are at play, it can affect the sex ratio.