the black cat is the dominant allele B and the white cat is a recessive allele w. now,Â
in f1: the dominant allele masked the recessive characters but they are heterologous dominant ie BBww
in f2: Bw x BwÂ
the outcome is BB,Bw,Bw,wwÂ
 tip:do the checkerboard formula by mendel it always works