Dihybrid cross and allele inheritance