the cell undergoing meiosis is heterozygous for 3 genes, S Y and R (for each gene, you have a dominant and a recessive allele). when you form the haploid gametes, you can only have one allele for each gene. because your cells is heterozygous for all 3 genes, you can create a total of 8 different combinations of gametes or 2^3. however if your cell was SSYYRR, you can only create one type of gamete, SYR. same goes with a cell that was ssyyrr (gamete will be syr). if you had SSRrYy, you can make 1x2x2=4 different gametes (SRY, Sry, SrY, and SRy). get it?