You can, as TKHunny suggests, estimate the number of each kind of marble in the bag.
There are 10 marbles, total in the bag so if there were "m" purple marbles in the bag, you would expect to get an average of \(\displaystyle \frac{m}{10}(50)= 5m\) purple marbles in 50 tries. If 5m= 9 then m= 9/5. Of course, that's not the number of purple marbles since it is not an integer- it's only an estimate and an estimate lose to 2. Similarly, if there were "n" yellow marbles, in 50 trials we would expect about 5n yellow marbles. Since we got 6, we would expect n to be close to 6/5- and the integer closest to 6/5 is 1. We estimate that there is 1 yellow marble in the bag. Can you estimate the number of orange and green marbles in the bag?
Because these numbers must be integers, I'm not sure "confidence intervals" would really tell you much.