设卖了X千克,则有:
(120-X)/(90-X) = 4
120-X = 360-4x
3X = 240
得到X = 80
所以得到:苹果剩下:120-80 = 40
梨剩下:90-80 = 10
各卖80