ball through a hoop?

Aidan is doing a multiple-choice test with 20 questions. He scores 3 marks for a correct
answer and loses 1 mark if the answer is incorrect. Aidan answers all the questions and
scores 40 marks. How many questions has he answered correctly?