To calculate the water temperature of a mixture, multiply the mass and temperature of the first container together and add it to the product of the mass and temperature of the second container. Finally, take that result and divide it by the sum of the masses of water of each container.