Counting the remaining 10 apples. There were 50 - 10 = <<50-10=40>>40 apples sold.
Counting the remaining 6 oranges. There were 40 - 6 = <<40-6=34>>34 oranges sold.
The amount of sales for the apples is $0.8 x 40 = $<<0.8*40=32>>32.
The amount of sales for the oranges is $0.5 x 34 = $<<0.5*34=17>>17.
The cafeteria's total earnings are $32 + $17 = $<<32+17=49>>49.
#### 49