3.3 Genotype-by-Environment Interaction
When the extra-leg deformity is due to a combination of worms and genetics, the model of development looks like one of these two (again, I’m not saying which):

When the variation in leg number results from genotype-by-environment interaction, individuals that inherit two copies of a deleterious allele (left)—or one or two copies (right)—AND acquire worms as tadpoles develop five legs. All other individuals grow four legs.
The difference between ponds in the frequency of five legs is due to both a difference in the density of worms and a difference in the frequency of the f’ allele.