Martin has a pencil case which contains 4 blue pens and 3 green pens. Martin picks a pen at random from the pencil case. He notes its colour, and then replaces it. He does this two more times. Work out the probability that when Martin takes three pens, exactly two are the same colour. (3 marks)