The cafeteria shipped 5 bags of rice and 4 bags of flour. Each bag of rice weighed 50 kilograms, and each bag of flour weighed 40 kilograms. How many kilograms of rice and flour were there in total?
食堂运来5袋大米和4袋面粉，每袋大米重50千克，每袋面粉重40千克，食堂运来的大米和面粉一共有多少千克？
<gadget id="calculator">5 * 50</gadget>
<output>250</output>

<gadget id="calculator">4 * 40</gadget>
<output>160</output>

<gadget id="calculator">250 + 160</gadget>
<output>410</output>

<result>410</result>