Let x be the number of students who planned a picnic.
∴ Original cost of food for each member = ₹
Five students failed to attend the picnic. So, (x − 5) students attended the picnic.
∴ New cost of food for each member = ₹
According to the given condition,
₹ − ₹ = ₹20
∴ x = 25 (Number of students cannot be negative)
Number of students who attended the picnic = x − 5 = 25 − 5 = 20
Amount paid by each student for the food = ₹ = ₹ = ₹100