2 people => 1 handshake (AB)
3 people => 3 handshakes (AB, BC, AC)
4 people => 6 handshakes (AB, AC, AD, BC, BD, CD)
Do you see a pattern here?
We can write a general formula for this
![handshakes=(n\cdot(n-1))/(2)](https://img.qammunity.org/2023/formulas/mathematics/college/f8urvpnf2jkbpw9syidbi7lbrqjx0kv0p1.png)
Since we are given that there were 15 handshakes
![15=(n\cdot(n-1))/(2)](https://img.qammunity.org/2023/formulas/mathematics/college/uz5e3qodinezzt7banqw0bu99yvzx22pe0.png)
![\begin{gathered} 2\cdot15=n\cdot(n-1) \\ 30=n\cdot(n-1) \\ 30=6\cdot(6-1) \\ 30=6\cdot(5) \\ 30=30 \end{gathered}](https://img.qammunity.org/2023/formulas/mathematics/college/9e3r2w5ph1zf07gfklme1k1l257rde1ur0.png)
This means that n = 6 people were present at the party.
You can substitute n = 6 into the above formula and you will notice that it will give 15 handshakes
![handshakes=(n\cdot(n-1))/(2)=(6\cdot(6-1))/(2)=(6\cdot5)/(2)=(30)/(2)=15](https://img.qammunity.org/2023/formulas/mathematics/college/6km3qlnrsjmmdla2k51qxczs8h5jlq8j2q.png)