There are red, green, and yellow balls in a carton, and the ratio of their numbers is 3:4:5. If the number of green balls is 18 less than that of yellow balls, how many balls are there in total?
纸箱里有红、绿、黄三色球，它的个数的比为3：4：5，如果绿色球比黄色球少18个，三种球一共有多少个？
<gadget id="calculator">5 - 4</gadget>
<output>1</output>

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

<gadget id="calculator">3 + 4 + 5</gadget>
<output>12</output>

<gadget id="calculator">18 * 12</gadget>
<output>216</output>

<result>216</result>