A bag contains 4 white marbles and 3 blue marbles. Another bag contains 5 red and…