The speed of light (v), frequency (f), and wavelength (λ) are related by the equation v = fλ. When light enters a denser medium like glass from air, its speed (v) decreases, and since the frequency (f) remains constant, the wavelength (λ) must decrease proportionally (λ = v/f).