Two reactions in indirect heat exchange with each other