first we bring the ice to 0°C and calculate how much heat is required to do so. let this be equal to H1
calculate the heat released when the water comes to 0°C
let this be equal to H2
if H1=H2 then the ice will not melt
if H2>H1 the ice will melt
let the mass of ice be M
let m mass of ice melts
Heat required to melt it = qm
where q is the latent heat of melting
then
qm=H2-H1
this will give u q
so the final mass of ice=M-m
mass of water =initial mass of water + m