What was the question to which Max Planck gave an explanation and how is it related to blackbody radiation? Quoting from my text book - "several attempts were made to predict intensity as a function of temperature/wavelength". This line was preceded by the explanation for blackbody radiations and about how the intensity of radiation of a particular wavelength would be maximum at a particular temperature.
This was followed by "Planck gave a satisfactory relationship by assuming that absorption and emission of waves arises from oscillators I.e., atoms in the wall of the blackbody. He suggested that radiation could be sub divided into discrete chunks of energy, he gave the name quantum to the smallest quantity of energy that can be absorbed or emitted".
I am aware of the equation Energy=frequency x Planck's constant
How does Planck's above explanation correlate with intensity being a function of wavelength or temperature? How does it have a relation to blackbody radiation?
Ps:- I'm a student of 10th grade so please do try to keep the explanation simple..
 A: At the time black body radiation computed with classical electromagnetism, disagreed with the laboratory measurements, giving impossible values for high frequencies. It was called the ultraviolet catastrophy.

The amount of radiation emitted in a given frequency range should be proportional to the number of modes in that range. The best of classical physics suggested that all modes had an equal chance of being produced, and that the number of modes went up proportional to the square of the frequency.



But the predicted continual increase in radiated energy with frequency (dubbed the "ultraviolet catastrophe") did not happen. Nature knew better.

Planck's formula, the quantum line in the graph above, agreed with the data and avoided the ultraviolet catastrophe.
A: In reality M. Plank advanced first (constructed) a simple interpolation formula bridging two asymptotics - infrared and ultraviolet, both being well established experimentally. Then it turned out that his semi-empirical interpolation formula worked so well in different conditions that it seemed to be an exact formula. After that M. Plank tried to derive it "theoretically". It is precisely here where and when the notion of energy quantum was invented and appeared as a notion. Had the exact formula been more complicated, the idea of energy quantization would have been delayed for another decade, I guess.
