Answer:
<u><em>A black guinea pig crossed with an albino guinea pig producing 12 black offspring</em></u>
b b
B Bb Bb
B Bb Bb
The genotype of the black gunea pig will be BB in this situation and the genotype for the albino pig would be bb.
The gametes formed will be B, B,b, b.
The offsprings will have genotype Bb. They will be heterozygous black.
<u><em></em></u>
<u><em>When the albino was crossed with a second black one, 7 blacks and 5 albinos were obtained</em></u>
b b
B Bb Bb
b bb bb
The genotype of the black parent will be heterozygous i.e Bb in this condition. The genotype of the albino parent will be bb.
The gametes formed will be B,b,b,b.
50% of the offsprings will have the probability of having heterozygous Bb genotype. 50% of the offsprings will have the probability of having albino bb genotype.