How to merge textures?

I can’t use first way, because I can’t use photoshop or gimp to work with layers. I’m trying the second way and can’t understand how and why to set result color to green/red/blue?
image