There are 50 apples and 40 oranges in the cafeteria. If an apple costs $0.80 and an orange costs $0.50, how much does the cafeteria earn for apples and oranges if there are only 10 apples and 6 oranges left?
Counting the remaining 10 apples. There were 50 - 10 = 
<gadget id="calculator">50-10</gadget>
<output>40</output>
40 apples sold.
Counting the remaining 6 oranges. There were 40 - 6 = 
<gadget id="calculator">40-6</gadget>
<output>34</output>
34 oranges sold.
The amount of sales for the apples is $0.8 x 40 = $
<gadget id="calculator">0.8*40</gadget>
<output>32</output>
32.
The amount of sales for the oranges is $0.5 x 34 = $
<gadget id="calculator">0.5*34</gadget>
<output>17</output>
17.
The cafeteria's total earnings are $32 + $17 = $
<gadget id="calculator">32+17</gadget>
<output>49</output>
49.

<result>49</result>