Non-linearly additive spectral subtraction?
It's difficult to suggest an algorithm without knowing more about the nature of these signals, but if it really is as simple as the above situation, then a spectral subtraction approach which uses the reference 'Single Substance' signal to activate a binary mask might do the job for you.