A true-breeding specimen seems to be homozygous, thus, the blue color flowers must exhibit the genotype BB and the yellow ones must have possessed the genotype YY.
In the given case, when one crosses a flower with genotype BB and other with genotype YY, all the offspring will be BY. As in the next generation, all the flowers appear blue, thus, the blue allele must be dominant.