Tom has a red marble, a green marble, a blue marble, four identical yellow marbles, and a purple marble. How many different groups of two marbles can Tom take?

Tom can take 18 different groups.