A math test has two parts. Both parts have the same number of questions. Rachael answered 2/3 of the questions correctly in the first part of the test, but she only answered 1/2 of the questions correctly in the second part of the test. Overall, she answered 21 questions correctly. What is the total number of questions on the test?