Answer:
625
Explanation:
here we are in an inverse proportion situation :
As the number of days increases
when the number of students decreases and vice versa.
__________________
Say n is the original number of students.
___________________________________________
After 15 days, the rest of food is enough for n students for 45 days,
or enough for n+500 students for 25 days.
Then
45n = 25×(n + 500)
Then
45n = 25n + 25×500
Then
45n - 25n = 25×500
Then
20n = 12500
Then
n = 12500÷20
= 625
and thus , there were 625 students in the hostel.