Breakdown of В пакете было только пятьсот граммов муки, поэтому мне пришлось купить ещё один килограмм.
Questions & Answers about В пакете было только пятьсот граммов муки, поэтому мне пришлось купить ещё один килограмм.
Because в can take different cases depending on meaning:
- в + accusative = motion into something
- в пакет = into the bag
- в + prepositional = location inside something
- в пакете = in the bag
Here the sentence describes where the flour was, not movement, so Russian uses the prepositional case: в пакете.
In this sentence, было is the usual neuter singular past form used in an existential-style construction: В пакете было... = There was/there were in the bag...
With amounts, quantities, and especially mass nouns like мука, Russian very often uses singular было:
- было много воды
- было пять килограммов сахара
- было только пятьсот граммов муки
So even though the idea involves grams, the whole phrase is treated as a quantity/amount, and было sounds natural.