Solution:
There are a total of 165 ways for the people to collectively ace the test. Consider groups of people who share the same problems that they got incorrect. We either have a group of 2 and a group of 3, or a group 5.
In the first case, we can pick the group of two in (25) ways, the problems they got wrong in (25) ways. Then there are 3! ways for the problems of group 3. There are 600 cases here.
In the second case, we can 5!⋅4!/2=120⋅12 ways to organize the five cycle (4!/2 to pick a cycle and 5! ways to assign a problem to each edge in the cycle).
Thus, the solution is 217255 and the answer is 25517.