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