Movie tickets are distributed in the school screening room. There are 24 consecutive numbered tickets in the art class. Xiaolin and Xiaojun are good friends. They want to get 2 consecutive numbered tickets. How many ways are there in total? ．
学校放映厅发放电影票，美术班有24张连号票，小林和小军是好朋友，他们想拿2张连号票，一共有多少种拿法？．
<gadget id="calculator">24 - 1</gadget>
<output>23</output>

<result>23</result>