A mathematics test consists of sections A and B. Each question in section A carries 2 marks. Each question in section B carries 3 marks. If Ken has answered 40 questions and got a total of 92 marks, how many question in each section has he answered correctly?