<human>:  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?
<bot>: How many apples were sold? ** Counting the remaining 10 apples. There were 50 - 10 = <<50-10=40>>40 apples sold.
How many oranges were sold? ** Counting the remaining 6 oranges. There were 40 - 6 = <<40-6=34>>34 oranges sold.
How much did the apples sell for? ** The amount of sales for the apples is $0.8 x 40 = $<<0.8*40=32>>32.
How much did the oranges sell for? ** The amount of sales for the oranges is $0.5 x 34 = $<<0.5*34=17>>17.
How much did the cafeteria earn? ** The cafeteria's total earnings are $32 + $17 = $<<32+17=49>>49.
#### 49