面粉400吨,大米350吨
设面粉x吨,则大米7/8x吨
x-7/8x×(1-20%)=120
x-7/8x×80%=120
x-7/10x=120
3/10x=120
x=400
400×7/8=350(吨)