when is it possible when two yellow peas are crossed that can produce both yellow and green offspring?

When one parent is heterozygous and the other parent is homozygous green.
When one parent is homozygous for the yellow gene and one is homozygous for the green gene.
When both parents are homozygous
When both parents are heterozygous.
All of the answers are possible in this scenario.

All of these answers are correct. When two yellow peas are crossed, it is possible to produce both yellow and green offspring depending on the genetic makeup of the parents.