a.
Let us write down conservation energy condition. On the left side is heat given to ice cubes, on the right - heat taken from water
2⋅mice⋅cice⋅ΔT0+2⋅mice⋅λ+2⋅mice⋅cwater⋅t1=mwater⋅cwater(25−t1)
here c denotes specific heat capacity and lambda denotes specific heat of melting of ice, ΔT0=15∘ C. We can find t1 - the final temperature from this equation.
t1=mwater⋅cwater+2⋅mice⋅cwatermwater⋅cwater⋅25−2⋅mice⋅cice⋅ΔT0−2⋅mice⋅λ
But if we evaluate
mwater⋅cwater⋅25−2⋅mice⋅cice⋅ΔT0−2⋅mice⋅λ=0.2⋅4200⋅25−2⋅0.05⋅15⋅2060−2⋅0.05⋅335000=−15500
we will see it is negative. this means that there is not enough heat to melt all the ice. Hence, final temperature is 0 C.
b.
The same formula without factor 2 for ice
t1=(mwater⋅cwater⋅25−mice⋅cice⋅ΔT0degrees−mice⋅λ)/(mwater⋅cwater+mice⋅cwater)=
=0.2⋅4200+0.05⋅42000.2⋅4200⋅25−0.05⋅15⋅2060−0.05⋅335000=2.5∘C
Here answer is 2.5 degrees C