Ravi has 160g of sweets that contains 40% sugar. Then
The weight of sweets Ravi had=160grams
Percentage of sugar present in sweet=40%
Therefore, weight of sugar in the sweet=40100×160
=4×16
=64 grams