In the store, the sports jacket costs 35 yuan, the short sleeves cost 20 yuan, and the sweatpants cost 30 yuan. The teacher bought 8 short sleeves and 5 pairs of pants, how much did they cost?
商店里的运动外套要35元一件，短袖要20元一件，运动裤要30元一条．老师买了8件短袖和5条裤子，一共用多少钱？
<gadget id="calculator">8 * 20</gadget>
<output>160</output>

<gadget id="calculator">5 * 30</gadget>
<output>150</output>

<gadget id="calculator">160 + 150</gadget>
<output>310</output>

<result>310</result>