The ratio between the black and white pigs is 29:9 that is approximately 3:1.
The ratio 3:1 clearly indicates that the mating is between heterozygous individuals. Black is dominant trait and white is the recessive trait in this case. So, heterozygous parents would be Bb and Bb.
The progeny would be Bb, BB, bb, Bb.
The phenotype of the progeny is 3:1 (3 black and 1white).
The genotype of the progeny is 1:2:1
This ratio shows that the black parents were heterozygous (Bb) and black is dominant over the white.