Earth is the right distance from the sun. It’s protected from harmful solar radiation by its magnetic field and the atmosphere keeps it warm. Earth contains the right chemical ingredients to sustain life such as H2O (water) and C (carbon)
The answer is atoms good luck
You need to know the energy frequency relationship for photons, which is thanks to Max Planck:
Photon Energy = Planck constant x Frequency
Rarranged:
Photon Energy / Planck Constant = Frequency
Planck Constant = 6.63x10^-34
2.93x10^-25 / 6.63x10^-34 = Frequency