The 27 masters in Duosi Toy Factory lead a total of 40 apprentices, and each master can lead one apprentice, two apprentices or three apprentices. If there are twice as many masters with one apprentice as there are other masters, how many masters are there with two apprentices?
多思玩具工厂的27位师傅共带徒弟40名，每位师傅可以带一名徒弟、两名徒弟或三名徒弟．如果带一名徒弟的师傅人数是其他师傅的人数的两倍，那么带两名徒弟的师傅有多少位．
<gadget id="calculator">2 / 3</gadget>
<output>2/3 = around 0.666667</output>

<gadget id="calculator">27 * (2/3)</gadget>
<output>18</output>

<gadget id="calculator">27 - 18</gadget>
<output>9</output>

<gadget id="calculator">9 * 3</gadget>
<output>27</output>

<gadget id="calculator">40 - 18</gadget>
<output>22</output>

<gadget id="calculator">27 - 22</gadget>
<output>5</output>

<result>5</result>