Xiaoyue, Dongdong and Archie each have some money, among which Xiaoyue has twice as much money as Dongdong, and Xiaoyue and Dongdong always have six times as much money as Archie. The teacher gave Xiaoyue some money, and now Xiaoyue has a total of 56 yuan, and then Xiaoyue gave all the money the teacher gave him to Dongdong and Archie. At this time, Dongdong has 36 yuan, and Archie has 16 yuan. Then the teacher How much money did you give Xiaoyue in total?
小悦、冬冬和阿奇三个人各有一些钱，其中小悦的钱数是冬冬的两倍，小悦和冬冬的钱数总是阿奇的6倍．老师给小悦一些钱，现在小悦一共有56元，然后小悦把老师给他的钱全部分给了冬冬和阿奇，这时冬冬有36元，阿奇有16元，那么老师一共给了小悦多少元钱？
<gadget id="calculator">56 - 16 - 36</gadget>
<output>4</output>

<gadget id="calculator">1 / 6</gadget>
<output>1/6 = around 0.166667</output>

<gadget id="calculator">2 / 6</gadget>
<output>1/3 = around 0.333333</output>

<gadget id="calculator">2 - (1/6) - (1/3) - 1</gadget>
<output>1/2 = around 0.5</output>

<gadget id="calculator">4 / (1/2)</gadget>
<output>8</output>

<gadget id="calculator">2 * 8</gadget>
<output>16</output>

<gadget id="calculator">56 - 16</gadget>
<output>40</output>

<result>40</result>