There are 140kg flour in two bags a and B. If 12.5% of the flour in bag a is put into bag B, the weight of flour in the two bags will be the same. How many kg flour are there in the two bags? (please list the detailed formula and use the equation to solve it) ≮ if you answer this question within 3 days,

There are 140kg flour in two bags a and B. If 12.5% of the flour in bag a is put into bag B, the weight of flour in the two bags will be the same. How many kg flour are there in the two bags? (please list the detailed formula and use the equation to solve it) ≮ if you answer this question within 3 days,

If a bag of flour is XKG, then B bag of flour is (140-x) kg,
x-12.5%x=(140-x)+12.5%x
87.5%x=140-87.5%x
87,5%x+87.5%x=140
175%x=140
x=80
Then B bag flour = 140-x = 140-80 = 60kg
Answer: a bag of flour 80kg, B bag of flour 60kg