A 50g ice cube at 0 degrees celcius is added to a glass containing 400g of water at 45 degrees celcius. What is the final temperature of the system? You may assume that no heat is lost to the surroundings.