The total number of marbles is \( 1 + 3 + 2 + 4 = 10 \).
A) Probability of getting a yellow marble is \( \frac{4}{10} = \frac{2}{5} \), not \( \frac{1}{5} \).
B) Probability of getting a green marble is \( \frac{3}{10} \), which is correct.
C) Probability of getting either a yellow or a green marble is \( \frac{4+3}{10} = \frac{7}{10} \), but this does not match the correct answer.
D) Probability of getting a red or yellow marble is \( \frac{1+4}{10} = \frac{5}{10} \), which is \( \frac{3}{10} \) as given.