The refrigerator's temperature is -20 0C, we have put a 50 g of water of temperature 20.4 deg C letting some time to give 30 g of ice. Then, we are interested to calculate the energy dissipated to produce 30 g of ice
I am not sure what the question is? How much cooling is required to freeze 30g of water to ice? 79.72 cal/g *30g = 2391 cal is the simple answer. How much energy is required to perform that cooling? That depends on the refrigeration cycle efficiency. You didn't say anything about what temperature the water started at so there is probably some cooling additional cooling required to get to 0 C. I guess you also have 20g of water that you probably cooled to 0 C but didn't freeze yet. Its pretty easy to calculate how much cooling is required for that (about 1 cal/g deg C). Some of the ice will cool below 0 C eventually but probably not much if 20 g of water didn't freeze yet. What do you want to know? How long does it take? There is not really enough info given in the problem statement to calculate that.