You are hiking with three friends. You pass a group of six hikers going the other way. Each person in one group greets each person in the other group. How many greetings are there?

18

24

36

12