Pre PYQs CSAT

UPSC Prelims 2015 CSAT question 74

In a society it is customary for friends of the same sex to hug and for friends of opposite sex to shake hands when they meet. A group of friends met in a party and there were 24 handshakes. Which one among the following numbers indicates the possible number of hugs ?