Each heterozygous locus gives a parent two possible alleles in gametes. AaBbCc has three heterozygous loci, so it makes 2³ = 8 gamete types. Two parents with eight gamete types each create 8 × 8 = 64 fertilisation combinations.
Mendel’s law of independent assortment states that alleles at different genes sort into gametes independently when those genes are unlinked. OpenStax explains independent assortment through dihybrid crosses, and the same probability rule extends to three loci. Nature Education also describes independent assortment as the separation of different genes during gamete formation.
Real data can depart from this model. Linked loci, epistasis, reduced viability, incomplete dominance, and small sample size can change offspring ratios. If your observed class counts deviate from 27:9:9:9:3:3:3:1, test the numbers with a Mendelian ratio chi-square calculator before changing your genetic model.
Sources: OpenStax Biology 2e and Nature Education.