I dont understand input and output?

can you explain with different example ?

N students and M discount coupons.
Coupons for each student: X discount coupons.
poor performer : need to pay additional amount equivalent to Y discount coupons,
N = 3 M = 5 ( the coupons we have)
x = 5 ( coupon for each student)
y = 6 ( which we can borrow )
so the first student can be given 5 coupons from M
after giving scholarship to student 1
M = 0 since( all 5 coupons given to him)
now we can borrow from the poor performer ( he has 6 coupons)
we need 5 to provide scholarship to 2nd student
so student 2 gets scholarship
now only 1 coupon left hence 100% scholarship cannot be provided
hence answer is 2
since 2 student get 100% scholarship

thank youuuuuuuuuuuuu :wink: