Answer:
1020 handshakes including the bride and the groom. 980 excluding the groom and the bride.
Explanation:
(20*19) twenty people on the brides side shake hands with the other 19 people (19 because you can't really shake your own hand).
+(20*30) twenty people on the brides side shake hand with 30 people on the grooms side.
+(20*2) twenty people on the brides side shake hands with the bride and the groom.
this equalssss......
1020!!!!
Since the grooms family does hugs instead of handshakes, you'd only calculate how many the brides side does.