According to principle of calorimetry, heat given = heat taken.
Let heat given by water to cool upto 0∘C=mcΔθ
where m is mass, c is specific heat and Δθ is temperature difference.
Heat taken by ice to melt =mL where L is latent heat.
Also if θ is the temperature of the mixture, then
Heat taken = Heat given mcΔθ=mL+mcΔθ′ 100×1×(50−θ)=10×80+10×1×(θ−0) ⇒500−10θ=80+θ ⇒11θ=420 ⇒θ=11420=38.2∘C