At a seminar, there are 30 participants, consisting of 20 men and 10 women. Each man shakes hands only with other men. Each woman shakes hands only with other women. If every allowed pair of people has exactly one handshake, find the total number of handshakes that occur at the seminar.