When the wavelengths are short, frequency is higher. The higher the frequency, the higher the energy. The obverse is also true.
The equation for energy is given as:
E = hv where:
E - Energy
h - is Planck's constant - (6.626 x 10⁻³⁴ J . s)
v - Frequency.
See the link below for more about Wavelength, Frequency, and Energy:
https://brainly.com/question/2426876