Not possible unless the store is paying you 24 cents per pound to take their sugar.
If the average per pound of the three items is 7 cents per pound, then the sum of the three prices has to be 21 cents (3 times 7). But you have 34 cents for the rice and 11 cents for the salt making 45 cents total just for those two items. For the sum of the three items to be 21, the price of sugar has to be -24 cents, in other words, they have to pay you.
John
My calculator said it, I believe it, that settles it