To answer this question, we need to divide 775kg of wheat by 8. This will represent the amount of wheat the shopkeeper will store in a bag (per bag). The remainder of the operation will be that left amount of wheat.
Then, we have:
Then, if the shopkeeper store 96kg of wheat into each bag - using an integer as the amount of wheat per bag - then we have:
Then, the remainder will be:
Therefore, we will have that 96kg of wheat can be store in a bag. The amount left will be 7kg.