Answer:
The genotypes of the parents are Rr and rr. The possible genotypes (and their phenotypes) are: RR (rough coat), Rr (rough coat), and rr (smooth coat). In a cross of rough coat boar (RR or Rr) and a soft coat sow (rr), there are half of the offspring with the smooth coat. We know that sow must be rr, but the boar can be RR and Rr. If it was RR, all of the offspring would be Rr and would have the rough coat. So, the boar has genotype RR.