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 both parents are homozygous
When both parents are heterozygous.

When one parent is heterozygous and the other parent is homozygous green.