a prison of 10,000 inmates has enough food to feed them all for 50 days . after 10 days some of the inmates leave and the food is now enough for the same period of 50 days as before . how many of them left ?