In a class of 32 students, 16 students study Spanish, 14 students are in band, 6 students are in both Spanish and band. How many students were in neither class?