Solving for the total number of people