Allright we know that the total number of tiles is 50 so we can assume that if you pick the first tile and its yellow ther is a (5/50) chance to pick it up and then REPLACED meaning that it is put back so you have still 50 tiles to choose from, if then you choose a green tile you have a (15/50) chance of picking it up
(5/50)*(15/50)=0.03 YOU HAVE A 3 PERCENT CHANCE!!!:D ^This is to calculate the probability of picking it in that order)^