The odds would be 1/15.
To find these odds, you first have to find the total number of cards.
2 + 3 + 1 + 4 = 10 cards
Then you can find the first set of odd for pulling a green card by placing the goal amount over the total amount.
3 green / 10 total = 3/10
Now, with that green card not being replaced, we have one less green and one less total. This gives us 2 green and 9 total, which helps us find the odds of pulling one again.
2 green / 9 total = 2/9
Now to find the odds of doing both, you need to multiply the two odds together.
3/10 * 2/9 = 6/90 or simplified 1/15