(i) If every student paid for both, the money would be (38+34)×(85+45). The 6 students who bring lunch do not pay 6×45. So the total collected, in rupees, is
(38+34)×(85+45)−6×45
(ii) The terms are (38+34)×(85+45) and −6×45.
(38+34)×(85+45)=72×130=72×100+72×30=7200+2160=9360
9360−6×45=9360−270=9090
The total collected is ₹9090.
(iii) Treat (85+45) as one number and use "the multiple of a sum is the sum of the multiples" twice:
(38+34)×(85+45)=38×(85+45)+34×(85+45)
38×(85+45)+34×(85+45)=38×85+38×45+34×85+34×45
Check with numbers: 3230+1710+2890+1530=9360, the same as 72×130.