w = # of women
m = # of men
Mr. Li is a man.
He shook hands with m - 1 men.
He shook hands with w women.
3w = m - 1
Mrs. Li is a women.
She shook hands with m men.
She shook hands with w - 1 women.
4(w-1) = m
3w = m - 1
4(w-1) = m
4w - 4 = m
3w = (4w - 4) - 1
w = 5
3(5) = m - 1
m = 16
16 + 5 = 21
=^._.^=