Answer: The percentage is 25%.
Step-by-step explanation:
Since we know that 18 students out of 24 students passed the test, we can subtract 18 from 24 to find the number of people who did not pass the test, which is 6. Then to find the percentage we must first divide 6 by 24, which gives us 0.25, and then we multiply it by 100 to get our percentage of the students in the class who did not pass the class.