In a certain mathematics competition, two different methods were used to score points. One is to give 5 points for a correct answer, 2 points for no answer, and no points for a wrong answer; the other is to give 40 points first, 3 points for a correct answer, no points for no answer, and 1 point for a wrong answer. An examinee scored 71 points in both scoring methods. May I ask: How many questions did you take in this competition?
某次数学比赛，用两种不同的方式判分．一种是答对1题给5分，不答给2分，答错不给分；另一种是先给40分，答对1题给3分，不答不给分，答错扣1分，某考生两种判分方法均得71分，请问：这次比赛共考了多少道题？
<gadget id="calculator">13 + 2 + 8</gadget>
<output>23</output>

<result>23</result>