Of course the variance of the two seperate deterministic distributions is zero, right?

I have a machine that processes products and with chance x it processes product A and with chance 1-x it processes product B, so the chances are known.

What will be the variance of the processing time of the machine?

Thank you in advance!