I like to think of the alphabet
You know how we learned the alphabet like
Aa Bb Cc
The first one we see is capital, so imagine that whenever you see a capital letter (dominant) it will come first before the lowercase (recessive)
In this it would be B yellow because it’s both dominant and contains no recessive
If we are talking about the square it’s BB
A 3/4 chance to transfer the dominant gene to the “child” and 1/4 for recessive to show
3/4 chance to carry recessive gene but 2/4 chance to not show the recessive gene but to carry it