They both are closely related but they are also very diffrent. The higher the frequency the shorter the wavelength. All light waves travel at the same speed through a vacume, the number of wave crests passing a given point in one second depends on wavelength