You can composite most elements using additive composition.
The main exceptions are the background element, atmospheres, and shadows:
In other words, the layers when you composite using black-and-white shadows appear like this:
Top: Atmosphere
Second from top: Shadow element
Middle: Diffuse + Specular + ... (other elements)
Bottom: Background
The other exception to additive composition is when specular or reflection elements have been generated by certain material shaders. These shaders generate specular and reflection elements you must composite differently:
Shaders are assigned on a per-material basis, in the Material Editor. If you render specular or reflection elements in a scene that uses these shaders, then composite them with the diffuse and other foreground components (aside from colored shadows, as described above), by overlaying them using an operation called "Screen" in some compositing programs.
Screen compositing uses this formula to combine elements:
Background * (1 - Foreground) + Foreground
The background is multiplied by the inverse of the foreground color, and then the foreground color is added to the result.
For more information, see the documentation for the compositing program you use.