Yellow is dominant because it is the trait that is expressed in the phenotype. (They all came out yellow)
This is the first generation so we call it f1 or f1 generation
When the f1 generation cross breed 75% will be yellow (they will express the dominant yellow trait) and 25 % will be red.
I’ve added a photo which is an example of this pattern