Hi Kevin,
Let X = the mass of the sugar that was bought
Then 2.5X = the mass of rice that was bought . . . one packet of each was purchased.
You paid 10 - 1.55 = $8.45
So 1.10X + 1.25(2.5)X = 8.45
1.10X + 3.125X = 8.45
4.225X = 8.45
X = 2 = mass of sugar
Multiplying by 2.5 gives us 5 kg for the mass of rice.
Dan