This question was asked in NCERT Question 17
Heat developed =I^2Rt isn't it? 
Aravind Rahul's image