 An egg and sperm join to form a complete set of genes.The resulting offspring has the same number of genes as their parents, but for any gene, one of their two copies comes from their father, and one from their mother.The effects of this mixing depend on the types (the alleles) of the gene.