Thermal equilibrium is when 2 substances in physical contact with one another are at the same temperature. Now we're going to say at the same temperature, these two substances would no longer exchange thermal energy. Now, if we take a look here, we're going to say we're going to initially start out with an object that's at a temperature of 110 degrees Celsius, and I'm going to place it into water at 40 degrees Celsius. So when I do this, there's going to be a heat transfer involved. Always remember that heat moves from a hotter object to a colder object. So by placing the hot cube within the water, we're going to expect the cube to cool off. It's cooling off because it's giving its excess heat to the water. So remember, an object that loses heat has a negative sign for q, and an object that gains heat has a positive sign for q. Water here is gaining the heat of the cube, so it's going to have a positive q.
Eventually, the thermal equilibrium will be reached. At this point, both of them will have the same final temperature. And because of that, we can say that the heat lost by the object is equal to the heat gained by the water. And remember, if your qs or heats are equal to one another, q = mcaT, that means that their mcΔT values are also equal to each other. So cube object negative q object equals the positive q water, and by extension, negative mcΔT of the object equals the positive mcΔT of the water.
Now just realize here that under ideal thermal equilibrium, heat transfers only occur between the solvent and the immersed heated object. We don't have to worry about heat being lost between these 2. Heat is always moving from the hotter object to the colder object. The hotter object is going to have a negative sign for q since it's going to lose its heat. The colder object initially will gain heat, so it's going to have a positive sign for q. So keep this in mind when giving signs for the q of the object versus the q of water or another object.