A test was administered on two days to 40 students total. On the first day, 21 students passed and 19 failed. On the second day, 14 of the students who passed the first day also passed the second day, while 7 who passed the first day failed the second day. Of those who failed the first day, 6 passed the second day while 13 failed both days.