There are total 10 members. Based on the condition no one make more than 8 handshakes. That means possible hand shakes are 0 to 8, i.e. Maximum 9 different answers will come. According to the question, all 10 members said different answers, but we cant get more than 9 different answers. Don't you think the question itself is contradicting????