Mr. X has 12 students in his math class. Last Friday they took a test covering everything that they have learned in math class since school began. One third of the students made a C, one fourth of the students made a B, one sixth of the students made an A, and the rest made a D. How many students made a grade B?