Explanation:
Let's say the total number of students in the history class is "x". We know that 5 students failed the test, which is 25% of the class.
So we can set up the following equation:
5 = 0.25x
To solve for "x", we can divide both sides by 0.25:
5/0.25 = x
20 = x
Therefore, there are 20 students in the history class.