Joshua's math test has 35 questions. If he answered 6/7 of them correctly, how many questions did Joshua answer correctly?