Step-by-step explanation:
I would propose the ratio is 12 white : 3 yellow : 1 spotted. You can check this using Chi square test.
So two gene pairs are involved in this trait.
W : allele for white
Y : allele for yellow
y : allele for spotted
W is dominant epistatic to Y and y
P: white (WWyy) >< yellow (wwYY)
F1: all white (WwYy)
F2: 9 W-Y- (white) : 3 W-yy (white) : 3 wwY- (yellow) : 1 wwyy