Both of the substances are water soluble as the experiment only measured the weigh that was left over. Therefore if the substance was not soluble the substances weight would not of changed. The data shows the substances become more soluble as the temperature raises as the weight decreases as temperature rises.
The loss of the hydrogen on one molecule produces a negative charge, which is attracted to the positive charge formed by the loss of the hydroxy group from the other molecule.