Xixi, Wangwang and Beibei started a joint venture company. Xixi’s investment amount is the sum of Wangwang and Beibei’s investment (1/2), and Wangwang’s investment is invested by Xixi and Beibei ( 1/3), if Beibei's contribution is 40,000 yuan more than Wang Wang's, how much is the amount of contribution of the three of them?
希希、望望和贝贝三人合资开了一家公司，希希出资金额是望望、贝贝两人出资之和的(1/2)，望望出资是希希、贝贝出资的(1/3)，若贝贝出资比望望的金额多4万元，则他们三人出资的金额是多少元？
<gadget id="calculator">2 + 4</gadget>
<output>6</output>

<gadget id="calculator">3 - 1 - 1</gadget>
<output>1</output>

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

<gadget id="calculator">6 + 6 + 4 + 6 + 2</gadget>
<output>24</output>

<result>24</result>