The correct option is D 40 KJ
Well, this is a direct application of the formula. Now you could ask, how we can find the value of resistance and time of heat. Well the answer is that we don’t have to.
In the first case, a 2A current causes 1600J of thermal energy in a resistor.
In the second case, 10A of the current through the same resistor for the same time cause some amount of heat which we have to find. Since R and t are the same we can treat them as constants.
Meaning , H∝i2
And any proportionality can be made a ratio.