In a given survey, 9 people say their favorite color is pink. The number represented 45% of the total people. How many people took the survey?