Let s represents mass of 1 sack of rice and w represents mass of 1bag of sugar .
It is given in the question that
The total mass of 2 sacks of rice and 3 bags of sugar was 32 kg
That is

And
each sack of rice was 6 kg heavier than all the bags of sugar. That is

Substituting the value of s in the first equation, we will get

So mass of 1 bag of sugar is 20/9 kg. Therefore mass of 1 sack of rice is
