A study of 50 high school students showed that exactly 25 of them took Biology, exactly 20 of them took Chemistry, and exactly 12 of them took both subjects. How many of the 50 students took neither Biology nor Chemistry?