Mr. Wang bought 15 basketballs, 24 yuan each, and 21 footballs, 45 yuan each. How much did Mr. Wang spend in total?
王老师买了15个篮球，每个24元，还买了21个足球，每个45元，王老师一共用了多少元？
<gadget id="calculator">15 * 24</gadget>
<output>360</output>

<gadget id="calculator">21 * 45</gadget>
<output>945</output>

<gadget id="calculator">360 + 945</gadget>
<output>1_305</output>

<result>1_305</result>