Xiao Gang has 10 movie tickets with consecutive numbers. If he wants to sit with Xiao Ming when watching a movie, how many different ways are there in total?
小刚有10张连号的电影票，如果看电影时他想和小明坐一起，一共有多少种不同的坐法．
<gadget id="calculator">10 - 1</gadget>
<output>9</output>

<gadget id="calculator">9 * 2</gadget>
<output>18</output>

<result>18</result>