B. The heat energy moves from the hot water into the cold water.
In this scenario, heat transfer occurs from the hot water (higher temperature) to the cold water (lower temperature) until thermal equilibrium is reached, meaning the temperatures equalize.