I've got a maths exam next week and i need to know how to work this question out for my revision so please could u show me:

There are some cubes in a bag. The cubes are eithert red (R) or black (B).

The teacher says:

**If you take a cube at random out of the bag, the probability that it will be red is 1/5.**
(a) what is the probabilty that the cube will be black?

(b) A pupil takes one cube out of the bag. It is red. What is the smallest number of black cubes there could be in the bag?

(c) Then the pupil takes another cube out of the bag. It is also red. From this new information, what is the smallest number of black cubes there could be in the bag?

(d) A different bag has blue (B), green (G) and Yellow (Y) cubes in it. There is at least one of each of the three colours.

The teacher says:

**If you take a cube at random out of the bag, the probability that it will be green is 3/5. **
There are 20 cubes in the bag. What is the greatest number of yellow cubes there could be in the bag?

Please can you show your working for all of the questions so i understand it.