Step-by-step explanation:
The shorter wavelength electromagnetic waves from sun are absorbed by earth material in form of short wavelength and the radiated wavelength are longer ones. Also higher energy waves are of shorter wavelength and lower energy waves have longer wavelength. So, they are absorbed as short wavelength and radiated back as long wavelength.