In the scenario described, the allele B (black coat) is dominant, and the allele b (spotted coat) is recessive. For a dog to exhibit the spotted phenotype, it must have two copies of the recessive allele (bb).
Therefore, the correct genotype that would lead to a spotted phenotype is:
bb