Explanation:
3 blue
4 red
2 yellow
in total 9 marbles.
when looking at the 3 blue marbles that leaves 9-3 = 6 others (red and yellow).
so, the ratio is
3:6 = 1:2
remember, a ratio is a fraction and follows the same rules of calculation, simplification, ...