```
AB + CD → AD + CB + energy
```
In this equation, A and B represent the atoms or ions that are exchanged between reactants AB and CD, and C and D represent the atoms or ions that remain unchanged. The arrows indicate that the reaction proceeds in both directions, but in the endothermic case, the forward reaction is favored over the reverse reaction at equilibrium.