I'm trying to teach myself some basic physics, and so maybe this question is stupid! But according to the wave model, the energy in an EM wave is proportional to the energy in the E and B fields, which can assume a range of values, no? But according to the quantum model, the energy of a photon is simply proportional to the frequency of the light. There seems to be a contradiction here. What am I missing?