If the box containing the 3 bags of flour weighs 950 grams, you should subtract 900 to 950.
Why?
Because each bag weighs 300 grams.
There are 3 bags.
300 * 3 = 900
When you subtract, you get 50.
This means the box weighs 50 grams.
Hope this helped you out.