Answer:
The amount of energy they carry is related to their frequency and their amplitude. The higher the frequency, the more energy, and the higher the amplitude, the more energy. You can make these patterns yourself with the activity Investigating waves and energy.
The relationship, E = hf , concerns the energy of an individual photon, not the energy of a classical electromagnetic wave. The energy carried by a classical wave is proportional to intensity, or in effect the number of photons, as well as to the frequency of the photons.