A bag contains 7 green and 3 yellow balls.
A ball is taken from the bag at random and replaced.
Another ball is taken from the bag at random.
a) draw a tree diagram to show all the possibilities.
b) What is the probability that both balls are different colours?