<h2>Part 1.</h2><h2>Answer:</h2>
Only the traits or allele for the green trait will be needed to make a green cucumber.
<h3>Explanation:</h3>
Here in the given example there are two allele responsible for the color of cucumber. One is Y which is dominant allele and codes for the yellow color.
While y is recessive allele and it will be code for the green color.
In case of heterozygous in which the genotype will be Yy but the phenotype will be always yellow because Y is dominant.
In case of genotype yy the phenotype will be green.
So for green cucumber there will be two y in the genotype.
<h2>Part 2.</h2><h2>Answer:</h2>
For yellow cucumber, there is need of only one dominant allele which codes for yellow.
<h3>Explanation:</h3>
According to the given punnet squre, There will be 4 genotypes from the breeding of a yellow cucumber and green cucumber.
The yellow cucumber is heterozygous or homozygous and its genotypes can be Yy and YY relatively.
But for green cucumber the genotype can only be homozygous which is yy.
In the punnet squre the 2 phenotype are yellow and green.
Hence for the yellow cucumber there is only need of one Y allele in genotype.