设梨x 则苹果20-x
20.2x+15.8(20-x)=351.2
20.2x+316-15.8x=351.2
20.2x-15.8x=351.2-316
4.4x=35.2
x=8
答:梨8箱 苹果12箱