Answer:
Two pea plants are crossed, both are with yellow color, offspring produced are 25% with green peas, while remaining 75% are with yellow peas. It clearly describes that yellow pea color is dominant while green is recessive one.
According to the given data, the ratio of both pea colors is 3:1 of yellow to green color. According to Mendel's law of inheritance, it is only possible when both the parents are heterozygous for the pea genotype. Let the genotype for yellow color be 'Y' and that for green color is 'y'. So, the genotype of both parents would be "Yy", they will fuse to form offspring having 25% green and 75% yellow phenotype of pea color.