Here, total number of outcomes = 24
Let there be x green marbles.
Then, the number of blue balls = 24 - x
Therefore favourable number of outcomes = x
∴P(G)=x24
But P(G)=23
⇒x24=23
⇒x=16
Therefore number of green marbles are 16.
And number of blue marbles = 24 - x = 24 - 16 = 8