Green Probability: 2/5
Yellow Probability: 2/5
Black Number of Beads: 4
If the chance to get a black bead is 1/5 the chance to get green or yellow has to be 4/5. Since both have the same amount of beads, the chance is 2/5 for each of them.
Now we know that 8 beads = 2/5 chance.
To find the number for 1/5 we just divide by 2.
8/2 = 4