Energy of EM Radiation

No.11266416 ViewReplyOriginalReport
Can someone explain this to me? Why does energy depend only on squared amplitude for EM fields but only on frequency for photons when photons are EM field quanta? How are these two combined?