Colour Masks

You need a Lerp(LinearInterpolate) node. Plug your mask channel to the alpha and your colors/textures to A and B.