There are 39 students in Class Three 1 and 45 students in Class Three 2. The school plans to distribute 6 notebooks to each of these two classes. How many notebooks are needed in total?
三1班39人，三2班45人，学校准备给这两个班的同学每人发6个笔记本，一共需要多少个笔记本？
<gadget id="calculator">39 + 45</gadget>
<output>84</output>

<gadget id="calculator">84 * 6</gadget>
<output>504</output>

<result>504</result>