Again, the heat the brass ball LOSES is GAINED by the ICE (s=2.05)and the WATER (s=4.188) that forms from the melting ice AND some of the heat is needed to MELT the ice (Latent heat of fusion (or melting) of ice is 334 j/gm)
Brass heat loss = 300 (.38) (800- Tf) where Tf is the final temp
Heat GAINED by ice 50 (2.05)(25) 25 is the temp change to get the ice to 0 degrees where it melts
Melting ice 50(334)
Heat gained by the WATER (after the ice melts) = 50(4.188)(Tf) (since the water warms from 0 degrees to Tf
now equate the losses and gains
300(.38)(800- Tf) = 50 (2.05)(25) + 50(334) + 50(4.188)(Tf)
Solve for Tf
91,200 - 114Tf = 2,562.5 +16,700 + 209.4Tf
71937.5 = 323.4 Tf
Tf = 222.44 degrees C