Winning CB scholarship

Bhaiya please explain this question with another example.

Hi @ritikbunty2511_729d0258992e0982
Initially there are N students and M coupons
100% wavier is given to those who have at least X coupons (good students)
Bad students must give Y coupons to take admission
So, let’s form an equation, If there are k good students then (N - k) students must have performed bad.

Initial Coupons - k*X + (N - k)*Y >= 0
Initial Coupons = M

You, just need to solve this equation by maximizing k such that k <= N

https://ide.codingblocks.com/s/646970?_ga=2.79602902.332698298.1667650105-672608080.1602772177