On a competitive exam, each correct answer earns 4 points, and each incorrect answer results in a deduction of 1 point. There are 50 questions on the exam, and a student answered all of them. If the student achieved a total score of 160 points, how many questions did the student answer correctly?
38
40
42
44