capegemini - on independence day chocolates were to be distributed among 350 kids in a play school but 140 kids were absent on that day and each kid present got 3 chocolates more find the total number of chocolates bought for the distribution - skillgun

Assume that total number of chocolates be Q.
Total number of kids in the school(when everyone is present) = 350.
Then number of chocolates per kid = Q/350 chocolates ...(1)
But,140 kids are absent.
Total number of kids present = 350 - 140 = 210
Number of chocolates per present kid = Q/210 chocolates ...(2)
210 kids were present and each kid gets 3 extra.
i.e (2)-(1)=3
Or Q/210 - Q/350=3
350Q - 210Q / (210 x 350)=3
140Q/ 210 x 350=3
Q = 3 x 210 x 350 / 140 = 1575