According to the principle of calorimetry, heat lost by hot body is equal to the heat gained by cold body.
The heat released by water
ΔQ=msΔT=0.3×4200×25=31500J
let mkg ice melts then,
ΔQ=mL=m×3.5×105=31500J
⇒m=3.531500×10−5=9000×10−5
m=0.09kg=90g
⇒x=90