One bag contains 4 white balls and 2 black balls. Another bag contains 3 white…