mrs . evans gave a test to her freshmen economics class , which has 40 students enrolled and 30 of them answered question 1 correctly . if 29 answered question 2 correctly and 10 did not take the test then how many answered both questions correctly ?