Suppose we have two bags. One contains 1 star block and 4 moon blocks. The other contains 3 star blocks and 1 moon block.
If we select 1 block at random from each, what is the probability that we will get 2 star blocks or 2 moon blocks?
To answer this question, we can draw a tree diagram to see all of the possible outcomes.
There are 5⋅4=20 possible outcomes. Of these, 3 of them are both stars, and 4 are both moons. So the probability of getting 2 star blocks or 2 moon blocks is 207.
In general, if all outcomes in an experiment are equally likely, then the probability of an event is the fraction of outcomes in the sample space for which the event occurs.