In a certain factory, the ratio of the number of people in the first workshop to the second workshop is 6:7. If 2/9 people are transferred from each workshop to the second workshop, then the second workshop has 77 more people than the first workshop. How many people are there in the workshop?
某工厂原来第一车间和第二车间的人数比是6：7，如果从每一车间调出2/9的人到第二车间，这时第二车间比第一车间多77人，原来两个车间共有多少人？
<gadget id="calculator">7 / 6</gadget>
<output>7/6 = around 1.166667</output>

<gadget id="calculator">2 / 9</gadget>
<output>2/9 = around 0.222222</output>

<gadget id="calculator">(2/9) - 1</gadget>
<output>-7/9 = around -0.777778</output>

<gadget id="calculator">(7/6) + (2/9) + (-7/9)</gadget>
<output>11/18 = around 0.611111</output>

<gadget id="calculator">77 / (11/18)</gadget>
<output>126</output>

<gadget id="calculator">(7/6) * 126</gadget>
<output>147</output>

<gadget id="calculator">126 + 147</gadget>
<output>273</output>

<result>273</result>