Solving for "r" and finding the number of residents surveyed.