Because B made three mistakes, and neither of them made more than three mistakes (1╱6 of the total), the total number of mistakes did not exceed 3/( 1╱6)= 18, so the total number of mistakes was 12.
Further calculation, A and B also did 9 right questions, 3 wrong questions and 2 wrong questions, so there were 8 right questions.