In a class of 24 students, 25 percent of them failed a test. How many students failed the test?