calculate the energy of a wave that has a frequency of 3.5*10^8 m/s

Is this an electromagnetic wave, a water wave, or some other kind of wave? I assume you mean it is an EM wave.

E = hc/wavelength