How to make a shader where you can change the color of the mask and the color outside of the mask?

Sorry if this is an easy thing to do, im very new to shaders. So basically im trying to change the color of a few chairs, so there can be different colored chairs (without having to create seperate materials) blue, red ,green, etc, and im also trying to change colors of a few other meshes. what im interested is in having a way to change the color of the mask texture of the chair and the texture outside of the mask (kinda like albedo but really is mask inverted). Is there like a shader code that someone knows about or can help me?

I think you can use linear interpolation with this one, or lerp. Plug in textures on a and b, and then use your mask on the t value.