the problem can be solve using the formula:
q = m cp dt
where q is the heat removed
cp is the heat capacity of the material ( 2.108 kJ/kg C for ice )
dt is the change temperature
q = (0.40 kg ) ( 2.108 kj/kg C) ( -25 - ( -15) C )
q = -8.432 kj
the negative sign indicates that it is removed