Box 1: dominant
Box 2: trait
Box 3: green
Box 4: recessive
Box 5: yellow
Basically, the dominant allele is the one you will always inherit from ur parents. Recessive is only inherited if you have both copies from your parents. In this case, green pea colour is dominant to the yellow pea colour. Therefore, the pea will only be yellow if both alleles are the same otherwise the pea will be green. Hope this helps :)