Formula: X+2X=834
3X=834
X=278
278*2=546 (kg)
278 kilograms of pears and 546 kilograms of apples were sold.