Answer:
A and B is the answer as there structure change
The equation that relates both energy and wavelength is:

where e is the energy and lambda is the wavelength.
Therefore, as we can see from this equation, the energy of an electromagnetic wave is inversely related to the wavelength of the electromagnetic wave.
One may know how close the molecules within the substances are packed together. Hot substances have molecules that are farther apart, cold substances have molecules that are more compact/closer together.