A test has 40 questions. The test awards 2 points if the answer is correct and takes away 1 point if the answer is incorrect. A student answered 5 questions incorrectly. And got 35 questions correct. What was his score?