given that
mass of water = 2 L = 2000 gram
now we can use
heat required to raise the temperature
[tex]Q = mC\Delta T[/tex]
C = 1 cal/g C
[tex]\Delta T = 40 - 22 = 18[/tex]
now from above formula
[tex]Q = 2000* 1 * 18[/tex]
[tex]Q = 36000 Cal[/tex]
so above is the heat required to raise the temperature