From the condition, for every 3 problems solved correctly, should be 5 problems solved incorrectly. So, we can divide 24 problems in groups, combining 3+5 = 8 such problems in each group. The number of groups is 24/8 = 3, which gives the ANSWER. 3*3 = 9 problems solved correctly and 3*5 = 15 problems solved incorrectly.