The cafeteria bought 24 bags of rice and 32 bags of flour. Each bag of rice weighed 25 kilograms, and each bag of flour weighed 20 kilograms. How many kilograms of rice and flour were bought in total?
食堂买来24袋大米和32袋面粉，每袋大米重25千克，每袋面粉重20千克，大米和面粉一共买了多少千克？
<gadget id="calculator">24 * 25</gadget>
<output>600</output>

<gadget id="calculator">32 * 20</gadget>
<output>640</output>

<gadget id="calculator">600 + 640</gadget>
<output>1_240</output>

<result>1_240</result>