Class 51 collected a total of 78 waste batteries in the "Waste Battery Recycling" activity, and Class 52 collected three times as much as Class 51. In this activity, how many waste batteries were collected by the two classes?
五1班在"废电池回收"活动中共回收78节废电池，五2班收集的是五1班的3倍，在这次活动中，两个班一共收集了多少节废电池？
<gadget id="calculator">78 * 3</gadget>
<output>234</output>

<gadget id="calculator">234 + 78</gadget>
<output>312</output>

<result>312</result>