Question: how does the frequency affect the wavelength?
Answer: The frequency and wavelength of a wave are related. When frequency increases more wave crests pass a fixed point each second. That means the wavelength shortens. So, as frequency increases, wavelength decreases.