There are 2 bags of marbles. One bag contains 2 red, 1 blue and 1 green marbles. The other bag contains 1 red, 2 blue and 2 green marbles. One marble is taken out of each bag at the same time. What is the probability that either a red or a green marble will be selected?