Since this is a question on weighted averages (all mixtures and alligation questions, essentially, are applications of weighted average), we CAN use the weighted average formula to solve this question. However, the quicker method will be to use the alligation diagram.
The diagrams representing the first situation is shown below:
Attachment:
06th June 2019 - Reply 2 - 1.JPG [ 19.93 KiB | Viewed 9338 times ]
So we gather that the two types of bottles should be mixed in the ratio of 2:3 to obtain an average quality of 800 ml for the mixture. This means that, there should be 24 bottles of 500ml and 36 bottles of 1000 ml.
For the second situation, the diagram can be drawn as shown below:
Attachment:
06th June 2019 - Reply 2 - 2.JPG [ 22.21 KiB | Viewed 9152 times ]
We have only removed the 1 litre bottles. So, the 4 parts of the ratio should still represent 24 bottles. This means that 1 part will represent 6 bottles.
But there were 36 bottles of 1000 ml earlier. This means 30 bottles were removed.
The correct answer option is D.
If you have practiced the alligation diagram enough and are good with it, this question should take you about a minute to solve.
Hope this helps!