Want to replicate this method of multiplying/dividing the light power relative to each strength?

Here’s a video demonstrating what I want to replicate.