In a class of 30 students, 13 have a brother and 8 have a sister. There are 3 students who have a brother and a sister.