Numerical answer type, answer in degC, tolerance 0.1.
Answer: 16 degC
Heat available from cooling the warm water to 0∘C is 200×4.18×40=33440 J, more than the 50×334=16700 J needed to melt all the ice, so the ice melts completely. The remaining 16740 J warms all 250 g: Tf=16740/(250×4.18)=16.02∘C, i.e. 16.0.