Originally, each person had to pay \\frac{900}{x}(xisthenumberofpeople).Then,fivepeopleleft,soeachpersonthenhadtopay$\frac{900}{x-5}.Wearegiventhat$\frac{900}{x-5}is2.5greaterthan$\frac{900}{x}.So,\frac{900}{x}=\frac{900}{x-5}-2.5.Solving,wegetx=-40,45,butwewantthepositive,sox=45.Sincewewantthenumberofpeople,andxisthenumberofpeople,wefindthatthenumberofpeoplethathadtosharethepricewas\boxed{45}$