Teacher Zhang went to the stationery store to buy basketball and volleyball. He bought 5 basketballs at 168 yuan each, and bought 8 volleyballs at 344 yuan. How much did you spend on basketball and volleyball?
张老师去文具店买篮球和排球．他买了5个篮球，每个篮球168元，又买了8个排球付出344元．买篮球和买排球共花了多少元？
<gadget id="calculator">168 * 5</gadget>
<output>840</output>

<gadget id="calculator">840 + 344</gadget>
<output>1_184</output>

<result>1_184</result>