In a test with total of 60 questions, 3 marks is awarded for a correct answer and 1 mark is deducted for each wrong answer. Also, no marks is awarded or deducted for not attempting the question. Ranjan has got 110 in the particular test and he had not attempted 10 questions. How many questions did he answer correctly?