We have the following:
r = red marbles
g = green marbles
b = blue marbles
y = yellow marbles
the statement gives us the following information
[tex]\begin{gathered} r+g+b+y=12 \\ r>g \\ g+b>r \\ y+g>r+b \end{gathered}[/tex]now,
1.
We assume the lowest value for the green ones, that is, 1. For the rest we only have to assume values that conform to the conditions given in the statement
[tex]\begin{gathered} g=1 \\ r=2 \\ b=2 \\ y=7 \end{gathered}[/tex]2.
There can only be 2 solutions and the other is the following:
[tex]\begin{gathered} g=1 \\ r=2 \\ b=3 \\ y=6 \end{gathered}[/tex]Those are all solutions since if we assume that g equals 2, the conditions cannot be met