There were 42 students who took a test in Math. There were 36 students who passed Test A, and there were 38 who passed Test B. If 34 students passed both tests, find the maximum number of students who did not pass any of the tests.