Out of 24 persons, the first person will shake hand with 23 persons.
The second person will shake hand with 22 persons (because he has already shaken hand with first person).
The third person will shake hand with 21 persons and so on. The second last person shakes hand with only one person. And last will shake hand with none
(because he has already shaken hand with all persons).
In order to find the total number of handshakes you have to add all the natural numbers from 1 to 23 i.e. ∑ 23.
∑23 = 23 x 24/2 = 276 = 276 handshakes.