Answer & Explanation:
The energy of a wave depends upon its amplitude, frequency and wave speed.
Assuming that both these waves are light waves, they have the same speed and amplitude can be assumed to be constant.
Wave 2 has a smaller wavelength and hence a higher frequency as c = λf, where
c is the speed of light,
λ is the wavelength and
f is the frequency of the wave.
Since wave 2 has a higher frequency, it has more energy.