At a triplets and quintuplets convention, there were 8 sets of triplets and 4 sets of quintuplets, all from different families. Each triplet shook hands with all the triplets except his/her siblings and with one-fifth of the quintuplets. Each quintuplet shook hands with all the quintuplets except his/her siblings and with one-fifth of the triplets. How many handshakes took place?
450
474
498
522
546