The probability is the ratio of "number of possible desired outcomes" over "number of all possible outcomes."
There are 30 marbles in total.
There are 8 red and 12 blue, so there are 20 marbles that are either red or blue. So the chance of picking a red or blue marble is 20/30 or 2/3.