How does changing the wavelength of a wave while keeping its speed constant affect its frequency?