Welcome to PF.
I figure you've been studying permutations and combinations? Binomial and hypergeometric distributions?
When you start out with these things, it is often helpful to have a play with the situation by trying out come numbers. eg.
Imagine instead of all the balls in one bag, you have five bags, each with one color only, and you take a ball from a random bag - x times. Number the bags. y(i) could be the number of times you've dipped into the ith bag - and the largest y(i) will be y. The possible solutions will be s=(y(1), y(2), ... y(5)).
The probability of a particular y will depend on the number of ways y can be produced by a combination of y(i).
We need to deal with what happens when x > 10, since there is a possibility of running out of balls in one bag. When this happens - we just select from another bag.
This should be equivalent to your problem - y(1) is the number of reds and so on.
For x > 45, p(y=10)=1.
For x=45 you have
(9,9,9,9,9): y=9 - one possibility.
(10,8,9,9,9): y=10 - there's four of these with the 8 in different positions, times 5 for the 10 in different positions, which would be 5x4=20 ways.
Total possible combinations is, therefore, 21
p(y=9)=1/21 and p(y=10)=20/21
At the other end of the scale.
If x=3, then y can be 1 or 2 or 3.
for y=1, you need the number of ways you select 3 out of 5 bags without duplication.
That would be 5x4x3=60 ways.
Caution: Have I overcounted?
Does it matter which order I select the bags in?
for y = 2, this means we dipped into one bag twice and one of the other bags once.
so there are 5 bags to dip twice and 4 to dip once for 5x4=20 ways. (caution: not if I overcounted!).
and there are 5 ways to get three from one bag. (well that checks out)
total # possibilities are 5+20+60=85.
P(y=1)=60/85, p(y=2)=20/85, p(y=3)=5/85
(you'll have to revise this for the overcounting - if any)
See how you can get a feel for the distribution.
What if you think of getting a black ball is a "win", and you want to know the probability of getting y wins from x samples - without replacement?
What kind of distribution would this be?
But that is not good enough - you want the situation where you get y black balls, and Y≤y balls of each of the other colors.
How do you express this in terms of probability?
What happens to that probability when you don't care which color is the "winning" color?